public class STBlockReader extends BlockReader
STBlockWriter| 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() |
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. |
SeekStatus |
seekCeil(BytesRef searchedTerm) |
boolean |
seekExact(BytesRef searchedTerm) |
clearTermState, compareToMiddleAndJump, decodeBlockBytesIfNeeded, docFreq, getOrCreateDictionaryBrowser, impacts, initializeBlockReadLazily, initializeHeader, isCurrentTerm, ord, postings, ramBytesUsed, readHeader, readLineInBlock, readTermStateIfNotRead, seekExact, seekInBlock, seekInBlock, term, termState, totalTermFreqpublic 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
next in class BlockReaderjava.io.IOExceptionprotected BytesRef nextTerm()
throws java.io.IOException
BlockReader.readTermStateIfNotRead().nextTerm in class BlockReaderjava.io.IOExceptionpublic SeekStatus seekCeil(BytesRef searchedTerm)
throws java.io.IOException
seekCeil in class BlockReaderjava.io.IOExceptionpublic boolean seekExact(BytesRef searchedTerm)
throws java.io.IOException
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.IOExceptionData In Motion GmbH all rights reserved