Module org.apache.lucene.codecs
Class STIntersectBlockReader
java.lang.Object
org.apache.lucene.index.TermsEnum
org.apache.lucene.index.BaseTermsEnum
org.apache.lucene.codecs.uniformsplit.BlockReader
org.apache.lucene.codecs.uniformsplit.IntersectBlockReader
org.apache.lucene.codecs.uniformsplit.sharedterms.STIntersectBlockReader
- All Implemented Interfaces:
Accountable,BytesRefIterator
The "intersect"
TermsEnum response to STUniformSplitTerms.intersect(CompiledAutomaton, BytesRef), intersecting the terms with an
automaton.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.codecs.uniformsplit.IntersectBlockReader
IntersectBlockReader.AutomatonNextTermCalculator, IntersectBlockReader.BlockIterationNested classes/interfaces inherited from class org.apache.lucene.index.TermsEnum
TermsEnum.SeekStatus -
Field Summary
FieldsFields inherited from class org.apache.lucene.codecs.uniformsplit.IntersectBlockReader
automaton, blockIteration, commonSuffix, finite, minTermLength, nextStringCalculator, NUM_CONSECUTIVELY_REJECTED_TERMS_THRESHOLD, numConsecutivelyRejectedTerms, numMatchedBytes, runAutomaton, seekTerm, statesFields inherited from class org.apache.lucene.codecs.uniformsplit.BlockReader
blockDecoder, blockFirstLineStart, blockHeader, blockHeaderReader, blockInput, blockLine, blockLineReader, blockReadBuffer, blockStartFP, dictionaryBrowser, dictionaryBrowserSupplier, fieldMetadata, forcedTerm, lineIndexInBlock, postingsReader, scratchBlockBytes, scratchBlockLine, scratchTermState, termState, termStateForced, termStateSerializer, termStatesReadBufferFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionSTIntersectBlockReader(CompiledAutomaton compiled, BytesRef startTerm, IndexDictionary.BrowserSupplier dictionaryBrowserSupplier, IndexInput blockInput, PostingsReaderBase postingsReader, FieldMetadata fieldMetadata, BlockDecoder blockDecoder, FieldInfos fieldInfos) -
Method Summary
Modifier and TypeMethodDescriptionprotected STBlockLine.Serializernext()Increments the iteration to the nextBytesRefin the iterator.protected BlockTermStateReads theBlockTermStateon the current line for the specific field corresponding to this reader.private booleanMethods inherited from class org.apache.lucene.codecs.uniformsplit.IntersectBlockReader
endsWithCommonSuffix, getMinTermLength, nextBlock, nextTermInBlockMatching, seekCeil, seekExact, seekExact, seekExact, seekFirstBlockMethods inherited from class org.apache.lucene.codecs.uniformsplit.BlockReader
clearTermState, compareToMiddleAndJump, createBlockHeaderSerializer, createDeltaBaseTermStateSerializer, decodeBlockBytesIfNeeded, docFreq, getOrCreateDictionaryBrowser, impacts, initializeBlockReadLazily, initializeHeader, isBeyondLastTerm, isCurrentTerm, newCorruptIndexException, nextTerm, ord, postings, ramBytesUsed, readHeader, readLineInBlock, readTermStateIfNotRead, seekInBlock, seekInBlock, term, termState, totalTermFreqMethods inherited from class org.apache.lucene.index.BaseTermsEnum
attributesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
fieldInfos
-
-
Constructor Details
-
STIntersectBlockReader
public STIntersectBlockReader(CompiledAutomaton compiled, BytesRef startTerm, IndexDictionary.BrowserSupplier dictionaryBrowserSupplier, IndexInput blockInput, PostingsReaderBase postingsReader, FieldMetadata fieldMetadata, BlockDecoder blockDecoder, FieldInfos fieldInfos) throws IOException - Throws:
IOException
-
-
Method Details
-
next
Description copied from interface:BytesRefIteratorIncrements the iteration to the nextBytesRefin the iterator. Returns the resultingBytesRefornullif 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.- Specified by:
nextin interfaceBytesRefIterator- Overrides:
nextin classIntersectBlockReader- Returns:
- the next
BytesRefin the iterator ornullif the end of the iterator is reached. - Throws:
IOException- If there is a low-level I/O error.
-
termOccursInField
- Throws:
IOException
-
createBlockLineSerializer
- Overrides:
createBlockLineSerializerin classBlockReader
-
readTermState
Reads theBlockTermStateon the current line for the specific field corresponding to this reader. Returns null if the term does not occur for the field.- Overrides:
readTermStatein classBlockReader- Returns:
- The
BlockTermState; or null if none. - Throws:
IOException
-