private final class FSTTermsReader.TermsReader.SegmentTermsEnum extends FSTTermsReader.TermsReader.BaseTermsEnum
TermsEnum.SeekStatus| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
decoded |
(package private) BytesRefFSTEnum<FSTTermOutputs.TermData> |
fstEnum |
(package private) boolean |
seekPending |
(package private) BytesRef |
term |
bytesReader, meta, state| Constructor and Description |
|---|
SegmentTermsEnum() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
decodeMetaData()
Decodes metadata into customized term state
|
BytesRef |
next()
Increments the iteration to the next
BytesRef in the iterator. |
TermsEnum.SeekStatus |
seekCeil(BytesRef target)
Seeks to the specified term, if it exists, or to the
next (ceiling) term.
|
boolean |
seekExact(BytesRef target)
Attempts to seek to the exact term, returning true if the term is found.
|
void |
seekExact(BytesRef target,
TermState otherState)
Expert: Seeks a specific position by
TermState previously obtained
from TermsEnum.termState(). |
BytesRef |
term()
Returns current term.
|
(package private) void |
updateEnum(BytesRefFSTEnum.InputOutput<FSTTermOutputs.TermData> pair) |
docFreq, impacts, ord, postings, seekExact, termState, totalTermFreqattributesBytesRef term
final BytesRefFSTEnum<FSTTermOutputs.TermData> fstEnum
boolean decoded
boolean seekPending
SegmentTermsEnum()
throws java.io.IOException
java.io.IOExceptionpublic BytesRef term() throws java.io.IOException
TermsEnumvoid decodeMetaData()
throws java.io.IOException
FSTTermsReader.TermsReader.BaseTermsEnumdecodeMetaData in class FSTTermsReader.TermsReader.BaseTermsEnumjava.io.IOExceptionvoid updateEnum(BytesRefFSTEnum.InputOutput<FSTTermOutputs.TermData> pair)
public BytesRef next() throws java.io.IOException
BytesRefIteratorBytesRef in the iterator.
Returns the resulting BytesRef or null 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.BytesRef in the iterator or null if
the end of the iterator is reached.java.io.IOException - If there is a low-level I/O error.public boolean seekExact(BytesRef target) throws java.io.IOException
TermsEnumTermsEnum.seekCeil(org.apache.lucene.util.BytesRef).
seekExact in class BaseTermsEnumjava.io.IOExceptionpublic TermsEnum.SeekStatus seekCeil(BytesRef target) throws java.io.IOException
TermsEnumpublic void seekExact(BytesRef target, TermState otherState)
TermsEnumTermState previously obtained
from TermsEnum.termState(). Callers should maintain the TermState to
use this method. Low-level implementations may position the TermsEnum
without re-seeking the term dictionary.
Seeking by TermState should only be used iff the state was obtained
from the same TermsEnum instance.
NOTE: Using this method with an incompatible TermState might leave
this TermsEnum in undefined state. On a segment level
TermState instances are compatible only iff the source and the
target TermsEnum operate on the same field. If operating on segment
level, TermState instances must not be used across segments.
NOTE: A seek by TermState might not restore the
AttributeSource's state. AttributeSource states must be
maintained separately if this method is used.
seekExact in class BaseTermsEnumtarget - the term the TermState corresponds tootherState - the TermState