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.BlockIteration
Nested 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, states
Fields 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, termStatesReadBuffer
Fields 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.Serializer
next()
Increments the iteration to the nextBytesRef
in the iterator.protected BlockTermState
Reads theBlockTermState
on the current line for the specific field corresponding to this reader.private boolean
Methods inherited from class org.apache.lucene.codecs.uniformsplit.IntersectBlockReader
endsWithCommonSuffix, getMinTermLength, nextBlock, nextTermInBlockMatching, seekCeil, seekExact, seekExact, seekExact, seekFirstBlock
Methods 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, totalTermFreq
Methods inherited from class org.apache.lucene.index.BaseTermsEnum
attributes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:BytesRefIterator
Increments the iteration to the nextBytesRef
in the iterator. Returns the resultingBytesRef
ornull
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.- Specified by:
next
in interfaceBytesRefIterator
- Overrides:
next
in classIntersectBlockReader
- Returns:
- the next
BytesRef
in the iterator ornull
if the end of the iterator is reached. - Throws:
IOException
- If there is a low-level I/O error.
-
termOccursInField
- Throws:
IOException
-
createBlockLineSerializer
- Overrides:
createBlockLineSerializer
in classBlockReader
-
readTermState
Reads theBlockTermState
on the current line for the specific field corresponding to this reader. Returns null if the term does not occur for the field.- Overrides:
readTermState
in classBlockReader
- Returns:
- The
BlockTermState
; or null if none. - Throws:
IOException
-