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 booleandoneprivate BytesRefBuilderspare-
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 BytesRefnext()Increments the iteration to the nextBytesRefin 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: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:
java.io.IOException- If there is a low-level I/O error.
-
-