Class LengthOrdinalIterator
java.lang.Object
org.apache.lucene.sandbox.facet.iterators.LengthOrdinalIterator
- All Implemented Interfaces:
OrdinalIterator
OrdinalIterator
passes through all ordinals as is and counts them.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from interface org.apache.lucene.sandbox.facet.iterators.OrdinalIterator
EMPTY, NO_MORE_ORDS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
length()
Number of ordinals in the delegate.int
nextOrd()
Returns next ord orOrdinalIterator.NO_MORE_ORDS
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.sandbox.facet.iterators.OrdinalIterator
toArray
-
Constructor Details
-
LengthOrdinalIterator
Constructor.- Throws:
IOException
-
-
Method Details
-
length
public int length()Number of ordinals in the delegate. -
nextOrd
Description copied from interface:OrdinalIterator
Returns next ord orOrdinalIterator.NO_MORE_ORDS
. *- Specified by:
nextOrd
in interfaceOrdinalIterator
- Throws:
IOException
-