public class STBlockReader extends BlockReader
STBlockWriterTermsEnum.SeekStatus| Modifier and Type | Field and Description |
|---|---|
protected FieldInfos |
fieldInfos |
blockDecoder, blockFirstLineStart, blockHeader, blockInput, blockLine, blockLineReader, blockReadBuffer, blockStartFP, dictionaryBrowser, dictionaryBrowserSupplier, fieldMetadata, forcedTerm, lineIndexInBlock, postingsReader, scratchBlockBytes, scratchTermState, termState, termStateForced, termStateSerializer, termStatesReadBuffer| Constructor and Description |
|---|
STBlockReader(java.util.function.Supplier<IndexDictionary.Browser> dictionaryBrowserSupplier,
IndexInput blockInput,
PostingsReaderBase postingsReader,
FieldMetadata fieldMetadata,
BlockDecoder blockDecoder,
FieldInfos fieldInfos) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isBeyondLastTerm(BytesRef searchedTerm,
long blockStartFP)
Indicates whether the searched term is beyond the last term of the field.
|
BytesRef |
next()
Increments the iteration to the next
BytesRef in the iterator. |
protected BytesRef |
nextTerm()
Moves to the next term line and reads it, whichever are the corresponding fields.
|
protected BlockTermState |
readTermState()
Reads the
BlockTermState on the current line for this reader's field. |
TermsEnum.SeekStatus |
seekCeil(BytesRef searchedTerm)
Seeks to the specified term, if it exists, or to the
next (ceiling) term.
|
(package private) TermsEnum.SeekStatus |
seekCeilIgnoreField(BytesRef searchedTerm) |
boolean |
seekExact(BytesRef searchedTerm)
Attempts to seek to the exact term, returning true if the term is found.
|
private boolean |
termOccursInField() |
clearTermState, compareToMiddleAndJump, decodeBlockBytesIfNeeded, docFreq, getOrCreateDictionaryBrowser, impacts, initializeBlockReadLazily, initializeHeader, isCurrentTerm, ord, postings, ramBytesUsed, readHeader, readLineInBlock, readTermStateIfNotRead, seekExact, seekExact, seekInBlock, seekInBlock, term, termState, totalTermFreqattributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResourcesprotected final FieldInfos fieldInfos
public STBlockReader(java.util.function.Supplier<IndexDictionary.Browser> dictionaryBrowserSupplier, IndexInput blockInput, PostingsReaderBase postingsReader, FieldMetadata fieldMetadata, BlockDecoder blockDecoder, FieldInfos fieldInfos) throws java.io.IOException
java.io.IOExceptionpublic 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.next in interface BytesRefIteratornext in class BlockReaderBytesRef 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.private boolean termOccursInField()
throws java.io.IOException
java.io.IOExceptionprotected BytesRef nextTerm() throws java.io.IOException
BlockReader.readTermStateIfNotRead().nextTerm in class BlockReaderjava.io.IOExceptionpublic TermsEnum.SeekStatus seekCeil(BytesRef searchedTerm) throws java.io.IOException
TermsEnumseekCeil in class BlockReaderjava.io.IOExceptionTermsEnum.SeekStatus seekCeilIgnoreField(BytesRef searchedTerm) throws java.io.IOException
java.io.IOExceptionpublic boolean seekExact(BytesRef searchedTerm) throws java.io.IOException
TermsEnumTermsEnum.seekCeil(org.apache.lucene.util.BytesRef).
seekExact in class BlockReaderjava.io.IOExceptionprotected boolean isBeyondLastTerm(BytesRef searchedTerm, long blockStartFP)
BlockReaderisBeyondLastTerm in class BlockReaderblockStartFP - The current block start file pointer.protected BlockTermState readTermState() throws java.io.IOException
BlockTermState on the current line for this reader's field.readTermState in class BlockReaderBlockTermState; or null if the term does not occur for the field.java.io.IOException