Module org.apache.lucene.suggest
Package org.apache.lucene.search.spell
Class PlainTextDictionary.FileIterator
- java.lang.Object
-
- org.apache.lucene.search.spell.PlainTextDictionary.FileIterator
-
- All Implemented Interfaces:
BytesRefIterator
- Enclosing class:
- PlainTextDictionary
final class PlainTextDictionary.FileIterator extends java.lang.Object implements BytesRefIterator
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
done
private BytesRefBuilder
spare
-
Fields inherited from interface org.apache.lucene.util.BytesRefIterator
EMPTY
-
-
Constructor Summary
Constructors Constructor Description FileIterator()
-
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
-
done
private boolean done
-
spare
private final BytesRefBuilder spare
-
-
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.
-
-