Package com.macrofocus.molap.index
Class IntegerListUniqueIndex
- java.lang.Object
-
- com.macrofocus.index.AbstractIndex<K>
-
- com.macrofocus.molap.index.AbstractUniqueIndex<java.lang.Integer>
-
- com.macrofocus.molap.index.IntegerListUniqueIndex
-
- All Implemented Interfaces:
com.macrofocus.index.Index<java.lang.Integer>
,UniqueIndex<java.lang.Integer>
public class IntegerListUniqueIndex extends AbstractUniqueIndex<java.lang.Integer>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.macrofocus.molap.index.UniqueIndex
UniqueIndex.Duplicate
-
-
Constructor Summary
Constructors Constructor Description IntegerListUniqueIndex(int[] keys)
Creates a new index with a set of keys.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.lang.Integer key)
int
getAddress(java.lang.Integer key)
java.lang.Integer
getKey(int i)
int
getSize()
UniqueIndex<java.lang.Integer>
head(int count)
UniqueIndex<java.lang.Integer>
keepAddresses(int[] addresses)
java.lang.Iterable<java.lang.Integer>
keys()
UniqueIndex<java.lang.Integer>
tail(int count)
-
Methods inherited from class com.macrofocus.molap.index.AbstractUniqueIndex
difference, intersection, union
-
-
-
-
Method Detail
-
contains
public boolean contains(java.lang.Integer key)
-
getAddress
public int getAddress(java.lang.Integer key)
-
keys
public java.lang.Iterable<java.lang.Integer> keys()
- Specified by:
keys
in interfacecom.macrofocus.index.Index<java.lang.Integer>
- Overrides:
keys
in classAbstractUniqueIndex<java.lang.Integer>
-
getKey
public java.lang.Integer getKey(int i)
-
getSize
public int getSize()
-
head
public UniqueIndex<java.lang.Integer> head(int count)
-
tail
public UniqueIndex<java.lang.Integer> tail(int count)
-
keepAddresses
public UniqueIndex<java.lang.Integer> keepAddresses(int[] addresses)
-
-