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
BytesRef
s 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:BytesRefIterator
Increments the iteration to the nextBytesRef
in the iterator. Returns the resultingBytesRef
ornull
if 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:
next
in interfaceBytesRefIterator
- Returns:
- the next
BytesRef
in the iterator ornull
if the end of the iterator is reached. - Throws:
IOException
- If there is a low-level I/O error.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-