Package org.apache.lucene.index
Class PrefixCodedTerms.TermIterator
- java.lang.Object
-
- org.apache.lucene.index.PrefixCodedTerms.TermIterator
-
- All Implemented Interfaces:
BytesRefIterator
- Enclosing class:
- PrefixCodedTerms
public static class PrefixCodedTerms.TermIterator extends Object
An iterator over the list of terms stored in aPrefixCodedTerms.
-
-
Field Summary
-
Fields inherited from interface org.apache.lucene.util.BytesRefIterator
EMPTY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longdelGen()Del gen of the current term.Stringfield()Returns current field.BytesRefnext()Increments the iteration to the nextBytesRefin the iterator.
-
-
-
Method Detail
-
next
public BytesRef 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.- Returns:
- the next
BytesRefin the iterator ornullif the end of the iterator is reached.
-
field
public String field()
Returns current field. This method should not be called after iteration is done. Note that you may use == to detect a change in field.
-
delGen
public long delGen()
Del gen of the current term.
-
-