Package org.apache.lucene.index
Class PrefixCodedTerms.TermIterator
- java.lang.Object
-
- org.apache.lucene.index.FieldTermIterator
-
- org.apache.lucene.index.PrefixCodedTerms.TermIterator
-
- All Implemented Interfaces:
BytesRefIterator
- Enclosing class:
- PrefixCodedTerms
public static class PrefixCodedTerms.TermIterator extends FieldTermIterator
An iterator over the list of terms stored in aPrefixCodedTerms.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BytesRefBuilderbuilder(package private) BytesRefbytes(package private) longdelGen(package private) longend(package private) java.lang.Stringfield(package private) IndexInputinput-
Fields inherited from interface org.apache.lucene.util.BytesRefIterator
EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description privateTermIterator(long delGen, RAMFile buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longdelGen()Del gen of the current term.java.lang.Stringfield()Returns current field.BytesRefnext()Increments the iteration to the nextBytesRefin the iterator.private voidreadTermBytes(int prefix, int suffix)
-
-
-
Field Detail
-
input
final IndexInput input
-
builder
final BytesRefBuilder builder
-
bytes
final BytesRef bytes
-
end
final long end
-
delGen
final long delGen
-
field
java.lang.String field
-
-
Constructor Detail
-
TermIterator
private TermIterator(long delGen, RAMFile buffer)
-
-
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.
-
readTermBytes
private void readTermBytes(int prefix, int suffix) throws java.io.IOException- Throws:
java.io.IOException
-
field
public java.lang.String field()
Description copied from class:FieldTermIteratorReturns current field. This method should not be called after iteration is done. Note that you may use == to detect a change in field.- Specified by:
fieldin classFieldTermIterator
-
delGen
public long delGen()
Description copied from class:FieldTermIteratorDel gen of the current term.- Specified by:
delGenin classFieldTermIterator
-
-