public class STBlockReader extends BlockReader
STBlockWriterTermsEnum.SeekStatus| Modifier and Type | Field and Description |
|---|---|
protected FieldInfos |
fieldInfos |
blockDecoder, blockFirstLineStart, blockHeader, blockHeaderReader, blockInput, blockLine, blockLineReader, blockReadBuffer, blockStartFP, dictionaryBrowser, dictionaryBrowserSupplier, fieldMetadata, forcedTerm, lineIndexInBlock, postingsReader, scratchBlockBytes, scratchBlockLine, scratchTermState, termState, termStateForced, termStateSerializer, termStatesReadBufferNULL_ACCOUNTABLE| Constructor and Description |
|---|
STBlockReader(IndexDictionary.BrowserSupplier dictionaryBrowserSupplier,
IndexInput blockInput,
PostingsReaderBase postingsReader,
FieldMetadata fieldMetadata,
BlockDecoder blockDecoder,
FieldInfos fieldInfos) |
| Modifier and Type | Method and Description |
|---|---|
protected STBlockLine.Serializer |
createBlockLineSerializer() |
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. |
TermsEnum.SeekStatus |
seekCeil(BytesRef searchedTerm) |
boolean |
seekExact(BytesRef searchedTerm) |
clearTermState, compareToMiddleAndJump, createBlockHeaderSerializer, createDeltaBaseTermStateSerializer, decodeBlockBytesIfNeeded, docFreq, getOrCreateDictionaryBrowser, impacts, initializeBlockReadLazily, initializeHeader, isCurrentTerm, newCorruptIndexException, 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(IndexDictionary.BrowserSupplier dictionaryBrowserSupplier, IndexInput blockInput, PostingsReaderBase postingsReader, FieldMetadata fieldMetadata, BlockDecoder blockDecoder, FieldInfos fieldInfos) throws IOException
IOExceptionpublic BytesRef next() throws IOException
next in interface BytesRefIteratornext in class BlockReaderIOExceptionprotected BytesRef nextTerm() throws IOException
BlockReader.readTermStateIfNotRead().nextTerm in class BlockReaderIOExceptionpublic TermsEnum.SeekStatus seekCeil(BytesRef searchedTerm) throws IOException
seekCeil in class BlockReaderIOExceptionpublic boolean seekExact(BytesRef searchedTerm) throws IOException
seekExact in class BlockReaderIOExceptionprotected boolean isBeyondLastTerm(BytesRef searchedTerm, long blockStartFP)
BlockReaderisBeyondLastTerm in class BlockReaderblockStartFP - The current block start file pointer.protected STBlockLine.Serializer createBlockLineSerializer()
createBlockLineSerializer in class BlockReaderprotected BlockTermState readTermState() throws 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.IOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.