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
-
Field Summary
FieldsFields inherited from interface org.apache.lucene.util.BytesRefIterator
EMPTY
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
done
private boolean done -
spare
-
-
Constructor Details
-
FileIterator
FileIterator()
-
-
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.
-