public class STIntersectBlockReader extends IntersectBlockReader
TermsEnum
response to
STUniformSplitTerms.intersect(CompiledAutomaton, BytesRef)
,
intersecting the terms with an automaton.IntersectBlockReader.AutomatonNextTermCalculator
TermsEnum.SeekStatus
Modifier and Type | Field and Description |
---|---|
protected FieldInfos |
fieldInfos |
beyondCommonPrefix, blockPrefixLen, blockPrefixRunAutomatonState, commonPrefixRef, commonSuffixRef, nextStringCalculator, numBytesAccepted, runAutomaton, seekTerm, startTerm
blockDecoder, blockFirstLineStart, blockHeader, blockInput, blockLine, blockLineReader, blockReadBuffer, blockStartFP, dictionaryBrowser, dictionaryBrowserSupplier, fieldMetadata, forcedTerm, lineIndexInBlock, postingsReader, scratchBlockBytes, scratchTermState, termState, termStateForced, termStateSerializer, termStatesReadBuffer
Constructor and Description |
---|
STIntersectBlockReader(CompiledAutomaton compiled,
BytesRef startTerm,
DictionaryBrowserSupplier dictionaryBrowserSupplier,
IndexInput blockInput,
PostingsReaderBase postingsReader,
FieldMetadata fieldMetadata,
BlockDecoder blockDecoder,
FieldInfos fieldInfos) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
next()
Increments the iteration to the next
BytesRef in the iterator. |
protected boolean |
nextBlockMatchingPrefix()
Find the next block that appears to contain terms that could match the automata.
|
protected BlockTermState |
readTermState()
Reads the
BlockTermState on the current line for the specific field
corresponding this this reader. |
private boolean |
termOccursInField() |
isBeyondCommonPrefix, nextTermInBlockMatching, runAutomatonForState, runAutomatonFromPrefix, seekCeil, seekExact, seekExact, seekExact
clearTermState, compareToMiddleAndJump, decodeBlockBytesIfNeeded, docFreq, getOrCreateDictionaryBrowser, impacts, initializeBlockReadLazily, initializeHeader, isBeyondLastTerm, isCurrentTerm, nextTerm, ord, postings, ramBytesUsed, readHeader, readLineInBlock, readTermStateIfNotRead, seekInBlock, seekInBlock, term, termState, totalTermFreq
attributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildResources
protected final FieldInfos fieldInfos
public STIntersectBlockReader(CompiledAutomaton compiled, BytesRef startTerm, DictionaryBrowserSupplier dictionaryBrowserSupplier, IndexInput blockInput, PostingsReaderBase postingsReader, FieldMetadata fieldMetadata, BlockDecoder blockDecoder, FieldInfos fieldInfos) throws java.io.IOException
java.io.IOException
public BytesRef next() throws java.io.IOException
BytesRefIterator
BytesRef
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 BytesRefIterator
next
in class IntersectBlockReader
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.private boolean termOccursInField() throws java.io.IOException
java.io.IOException
protected boolean nextBlockMatchingPrefix() throws java.io.IOException
IntersectBlockReader
nextBlockMatchingPrefix
in class IntersectBlockReader
java.io.IOException
protected BlockTermState readTermState() throws java.io.IOException
BlockTermState
on the current line for the specific field
corresponding this this reader.
Changes the current BlockTermState
to null if the term does not
occur for the field.readTermState
in class BlockReader
BlockTermState
; or null if none.java.io.IOException