public class BitSetOrdinalIterator extends java.lang.Object implements OrdinalIterator
OrdinalIterator returned for ordinals represented as bit sets in an NFCompressedGraph.BitSetOrdinalSet| Modifier and Type | Field and Description |
|---|---|
int |
offset |
EMPTY_ITERATOR, NO_MORE_ORDINALS| Constructor and Description |
|---|
BitSetOrdinalIterator(com.netflix.nfgraph.util.ByteArrayReader reader) |
| Modifier and Type | Method and Description |
|---|---|
OrdinalIterator |
copy()
Obtain a copy of this
OrdinalIterator. |
boolean |
isOrdered() |
int |
nextOrdinal() |
void |
reset()
Rewinds this
OrdinalIterator to the beginning of the set. |
public BitSetOrdinalIterator(com.netflix.nfgraph.util.ByteArrayReader reader)
public int nextOrdinal()
nextOrdinal in interface OrdinalIteratorpublic void reset()
OrdinalIterator to the beginning of the set.reset in interface OrdinalIteratorpublic OrdinalIterator copy()
OrdinalIterator. The returned OrdinalIterator will be reset to the beginning of the set.copy in interface OrdinalIteratorpublic boolean isOrdered()
isOrdered in interface OrdinalIteratortrue