Class ExternalRefSorter.ByteSequenceIterator
- java.lang.Object
-
- org.apache.lucene.search.suggest.fst.ExternalRefSorter.ByteSequenceIterator
-
- All Implemented Interfaces:
BytesRefIterator
- Enclosing class:
- ExternalRefSorter
static class ExternalRefSorter.ByteSequenceIterator extends java.lang.Object implements BytesRefIterator
Iterate over byte refs in a file.
-
-
Field Summary
Fields Modifier and Type Field Description private OfflineSorter.ByteSequencesReader
reader
private BytesRef
scratch
-
Fields inherited from interface org.apache.lucene.util.BytesRefIterator
EMPTY
-
-
Constructor Summary
Constructors Constructor Description ByteSequenceIterator(OfflineSorter.ByteSequencesReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BytesRef
next()
Increments the iteration to the nextBytesRef
in the iterator.
-
-
-
Field Detail
-
reader
private final OfflineSorter.ByteSequencesReader reader
-
scratch
private BytesRef scratch
-
-
Constructor Detail
-
ByteSequenceIterator
public ByteSequenceIterator(OfflineSorter.ByteSequencesReader reader)
-
-
Method Detail
-
next
public BytesRef next() throws java.io.IOException
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:
java.io.IOException
- If there is a low-level I/O error.
-
-