- 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) BytesRefBuilder
builder
(package private) BytesRef
bytes
(package private) long
delGen
(package private) long
end
(package private) java.lang.String
field
(package private) ByteBuffersDataInput
input
-
Fields inherited from interface org.apache.lucene.util.BytesRefIterator
EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description private
TermIterator(long delGen, ByteBuffersDataInput input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
delGen()
Del gen of the current term.java.lang.String
field()
Returns current field.BytesRef
next()
Increments the iteration to the nextBytesRef
in the iterator.private void
readTermBytes(int prefix, int suffix)
-
-
-
Field Detail
-
input
final ByteBuffersDataInput 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, ByteBuffersDataInput input)
-
-
Method Detail
-
next
public BytesRef 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.- Returns:
- the next
BytesRef
in the iterator ornull
if 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()
Returns 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:
field
in classFieldTermIterator
-
delGen
public long delGen()
Del gen of the current term.- Specified by:
delGen
in classFieldTermIterator
-
-