Package com.macrofocus.molap.index
Class IntegerRangeUniqueIndex
- java.lang.Object
-
- com.macrofocus.index.AbstractIndex<K>
-
- com.macrofocus.molap.index.AbstractUniqueIndex<java.lang.Integer>
-
- com.macrofocus.molap.index.IntegerRangeUniqueIndex
-
- All Implemented Interfaces:
com.macrofocus.index.Index<java.lang.Integer>
,UniqueIndex<java.lang.Integer>
public final class IntegerRangeUniqueIndex 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 IntegerRangeUniqueIndex(int from, int to)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(int key)
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)
java.lang.String
toString()
-
Methods inherited from class com.macrofocus.molap.index.AbstractUniqueIndex
difference, intersection, union
-
-
-
-
Method Detail
-
getAddress
public int getAddress(java.lang.Integer key)
-
head
public UniqueIndex<java.lang.Integer> head(int count)
-
tail
public UniqueIndex<java.lang.Integer> tail(int count)
-
contains
public boolean contains(java.lang.Integer key)
-
contains
public boolean contains(int key)
-
getKey
public java.lang.Integer getKey(int i)
-
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>
-
getSize
public int getSize()
-
keepAddresses
public UniqueIndex<java.lang.Integer> keepAddresses(int[] addresses)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classcom.macrofocus.index.AbstractIndex<java.lang.Integer>
-
-