public class HashSetOrdinalIterator extends java.lang.Object implements OrdinalIterator
OrdinalIterator returned for ordinals represented as variable-byte hashed integer arrays in an NFCompressedGraph.HashSetOrdinalSetEMPTY_ITERATOR, NO_MORE_ORDINALS| Constructor and Description |
|---|
HashSetOrdinalIterator(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 HashSetOrdinalIterator(com.netflix.nfgraph.util.ByteArrayReader reader)
public int nextOrdinal()
nextOrdinal in interface OrdinalIteratorpublic void reset()
OrdinalIteratorOrdinalIterator to the beginning of the set.reset in interface OrdinalIteratorpublic OrdinalIterator copy()
OrdinalIteratorOrdinalIterator. The returned OrdinalIterator will be reset to the beginning of the set.copy in interface OrdinalIteratorpublic boolean isOrdered()
isOrdered in interface OrdinalIteratortrue if the ordinals returned from this set are guaranteed to be in ascending order. Returns false otherwise.