Package org.aksw.commons.tuple.accessor
Class GenericTupleAccessorFromListOfKeysBase<D,C,K>
java.lang.Object
org.aksw.commons.tuple.accessor.GenericTupleAccessorFromListOfKeysBase<D,C,K>
- All Implemented Interfaces:
GenericTupleAccessor<D,,C, K> TupleAccessor<D,,C> TupleBridge<D,C>
- Direct Known Subclasses:
GenericTupleAccessorForMap
public abstract class GenericTupleAccessorFromListOfKeysBase<D,C,K>
extends Object
implements GenericTupleAccessor<D,C,K>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintkeyAtOrdinal(int index) Map an ordinal to a keyintordinalOfKey(K key) Search for the ordinal of the key in the underlying list in O(n).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.tuple.accessor.GenericTupleAccessor
getMethods inherited from interface org.aksw.commons.tuple.accessor.TupleAccessor
mapMethods inherited from interface org.aksw.commons.tuple.bridge.TupleBridge
build, build, compact, toComponentArray, validateBuildArg
-
Field Details
-
keys
-
-
Constructor Details
-
GenericTupleAccessorFromListOfKeysBase
-
-
Method Details
-
getDimension
public int getDimension()- Specified by:
getDimensionin interfaceTupleBridge<D,C>
-
keyAtOrdinal
Description copied from interface:GenericTupleAccessorMap an ordinal to a key- Specified by:
keyAtOrdinalin interfaceGenericTupleAccessor<D,C, K>
-
ordinalOfKey
Search for the ordinal of the key in the underlying list in O(n).- Specified by:
ordinalOfKeyin interfaceGenericTupleAccessor<D,C, K>
-
get
- Specified by:
getin interfaceTupleAccessor<D,C>
-