public class STBlockReader extends BlockReader
STBlockWriter
TermsEnum.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, termStatesReadBuffer
NULL_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, totalTermFreq
attributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildResources
protected final FieldInfos fieldInfos
public STBlockReader(IndexDictionary.BrowserSupplier dictionaryBrowserSupplier, IndexInput blockInput, PostingsReaderBase postingsReader, FieldMetadata fieldMetadata, BlockDecoder blockDecoder, FieldInfos fieldInfos) throws IOException
IOException
public BytesRef next() throws IOException
next
in interface BytesRefIterator
next
in class BlockReader
IOException
protected BytesRef nextTerm() throws IOException
BlockReader.readTermStateIfNotRead()
.nextTerm
in class BlockReader
IOException
public TermsEnum.SeekStatus seekCeil(BytesRef searchedTerm) throws IOException
seekCeil
in class BlockReader
IOException
public boolean seekExact(BytesRef searchedTerm) throws IOException
seekExact
in class BlockReader
IOException
protected boolean isBeyondLastTerm(BytesRef searchedTerm, long blockStartFP)
BlockReader
isBeyondLastTerm
in class BlockReader
blockStartFP
- The current block start file pointer.protected STBlockLine.Serializer createBlockLineSerializer()
createBlockLineSerializer
in class BlockReader
protected BlockTermState readTermState() throws IOException
BlockTermState
on the current line for this reader's field.readTermState
in class BlockReader
BlockTermState
; or null if the term does not occur for the field.IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.