public class STIntersectBlockReader extends IntersectBlockReader
TermsEnum response to
STUniformSplitTerms.intersect(CompiledAutomaton, BytesRef),
intersecting the terms with an automaton.IntersectBlockReader.AutomatonNextTermCalculatorTermsEnum.SeekStatus| Modifier and Type | Field and Description |
|---|---|
protected FieldInfos |
fieldInfos |
beyondCommonPrefix, blockPrefixLen, blockPrefixRunAutomatonState, commonPrefixRef, commonSuffixRef, nextStringCalculator, numBytesAccepted, runAutomaton, seekTerm, startTermblockDecoder, 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, seekExactclearTermState, compareToMiddleAndJump, decodeBlockBytesIfNeeded, docFreq, getOrCreateDictionaryBrowser, impacts, initializeBlockReadLazily, initializeHeader, isBeyondLastTerm, isCurrentTerm, nextTerm, ord, postings, ramBytesUsed, readHeader, readLineInBlock, readTermStateIfNotRead, seekInBlock, seekInBlock, term, termState, totalTermFreqattributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResourcesprotected 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.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 IntersectBlockReaderBytesRef 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 boolean nextBlockMatchingPrefix()
throws java.io.IOException
IntersectBlockReadernextBlockMatchingPrefix in class IntersectBlockReaderjava.io.IOExceptionprotected 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 BlockReaderBlockTermState; or null if none.java.io.IOException