Interface OrdinalIterator
-
- All Known Subinterfaces:
LeafFacetCutter
- All Known Implementing Classes:
CandidateSetOrdinalIterator,TaxonomyChildrenOrdinalIterator,TopnOrdinalIterator
public interface OrdinalIteratorIterate over ordinals.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description static OrdinalIteratorEMPTYReturn empty ordinal iteratorstatic intNO_MORE_ORDSThis const is returned by nextOrd when there are no more ordinals.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static OrdinalIteratorfromArray(int[] source)Convert int array to ordinal iterator.intnextOrd()Returns next ord orNO_MORE_ORDS.default int[]toArray()Convert to int array.
-
-
-
Field Detail
-
NO_MORE_ORDS
static final int NO_MORE_ORDS
This const is returned by nextOrd when there are no more ordinals.- See Also:
- Constant Field Values
-
EMPTY
static final OrdinalIterator EMPTY
Return empty ordinal iterator
-
-
Method Detail
-
nextOrd
int nextOrd() throws IOExceptionReturns next ord orNO_MORE_ORDS. *- Throws:
IOException
-
toArray
default int[] toArray() throws IOExceptionConvert to int array. Note that after this method is called original OrdinalIterator is exhausted.- Throws:
IOException
-
fromArray
static OrdinalIterator fromArray(int[] source)
Convert int array to ordinal iterator.
-
-