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.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
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
Fields 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
ConstructorDescriptionSTIntersectBlockReader
(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()
protected BlockTermState
Reads theBlockTermState
on the current line for the specific field corresponding to this reader.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
- Specified by:
next
in interfaceBytesRefIterator
- Overrides:
next
in classIntersectBlockReader
- 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
-