Module org.apache.lucene.suggest
Class ExternalRefSorter.ByteSequenceIterator
java.lang.Object
org.apache.lucene.search.suggest.fst.ExternalRefSorter.ByteSequenceIterator
- All Implemented Interfaces:
Closeable,AutoCloseable,BytesRefIterator
- Enclosing class:
ExternalRefSorter
public static class ExternalRefSorter.ByteSequenceIterator
extends Object
implements BytesRefIterator, Closeable
Iterates over
BytesRefs in a file, closes the reader when the iterator is exhausted.-
Field Summary
FieldsFields inherited from interface org.apache.lucene.util.BytesRefIterator
EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate -
Method Summary
-
Field Details
-
reader
-
-
Constructor Details
-
ByteSequenceIterator
-
-
Method Details
-
next
Description copied from interface:BytesRefIteratorIncrements the iteration to the nextBytesRefin the iterator. Returns the resultingBytesRefornullif the end of the iterator is reached. The returned BytesRef may be re-used across calls to next. After this method returns null, do not call it again: the results are undefined.- Specified by:
nextin interfaceBytesRefIterator- Returns:
- the next
BytesRefin the iterator ornullif the end of the iterator is reached. - Throws:
IOException- If there is a low-level I/O error.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-