Class ExternalRefSorter.ByteSequenceIterator
java.lang.Object
org.apache.lucene.search.suggest.fst.ExternalRefSorter.ByteSequenceIterator
- All Implemented Interfaces:
BytesRefIterator
- Enclosing class:
ExternalRefSorter
Iterate over byte refs in a file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OfflineSorter.ByteSequencesReaderprivate BytesRefFields inherited from interface org.apache.lucene.util.BytesRefIterator
EMPTY -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
reader
-
scratch
-
-
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.
-