Package org.apache.lucene.index
Class ExitableDirectoryReader.ExitableFilterAtomicReader
java.lang.Object
org.apache.lucene.index.IndexReader
org.apache.lucene.index.LeafReader
org.apache.lucene.index.FilterLeafReader
org.apache.lucene.index.ExitableDirectoryReader.ExitableFilterAtomicReader
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
ExitableDirectoryReader
Wrapper class for another FilterAtomicReader. This is used by ExitableSubReaderWrapper.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.FilterLeafReader
FilterLeafReader.FilterFields, FilterLeafReader.FilterPostingsEnum, FilterLeafReader.FilterTerms, FilterLeafReader.FilterTermsEnumNested classes/interfaces inherited from class org.apache.lucene.index.IndexReader
IndexReader.CacheHelper, IndexReader.CacheKey, IndexReader.ClosedListener -
Field Summary
FieldsFields inherited from class org.apache.lucene.index.FilterLeafReader
in -
Constructor Summary
ConstructorsConstructorDescriptionExitableFilterAtomicReader(LeafReader in, QueryTimeout queryTimeout) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprivate voidThrowsExitableDirectoryReader.ExitingReaderExceptionifQueryTimeout.shouldExit()returns true, or ifThread.interrupted()returns true.getBinaryDocValues(String field) ReturnsBinaryDocValuesfor this field, or null if no binary doc values were indexed for this field.Optional method: Return aIndexReader.CacheHelperthat can be used to cache based on the content of this leaf regardless of deletions.getNumericDocValues(String field) ReturnsNumericDocValuesfor this field, or null if no numeric doc values were indexed for this field.getPointValues(String field) Returns thePointValuesused for numeric or spatial searches for the given field, or null if there are no point fields.Optional method: Return aIndexReader.CacheHelperthat can be used to cache based on the content of this reader.getSortedDocValues(String field) ReturnsSortedDocValuesfor this field, or null if noSortedDocValueswere indexed for this field.getSortedNumericDocValues(String field) ReturnsSortedNumericDocValuesfor this field, or null if noSortedNumericDocValueswere indexed for this field.getSortedSetDocValues(String field) ReturnsSortedSetDocValuesfor this field, or null if noSortedSetDocValueswere indexed for this field.Returns theTermsindex for this field, or null if it has none.Methods inherited from class org.apache.lucene.index.FilterLeafReader
checkIntegrity, doClose, document, getDelegate, getFieldInfos, getLiveDocs, getMetaData, getNormValues, getTermVectors, maxDoc, numDocs, toString, unwrapMethods inherited from class org.apache.lucene.index.LeafReader
docFreq, getContext, getDocCount, getSumDocFreq, getSumTotalTermFreq, postings, postings, totalTermFreqMethods inherited from class org.apache.lucene.index.IndexReader
close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, notifyReaderClosedListeners, numDeletedDocs, registerParentReader, tryIncRef
-
Field Details
-
queryTimeout
-
DOCS_BETWEEN_TIMEOUT_CHECK
static final int DOCS_BETWEEN_TIMEOUT_CHECK- See Also:
-
-
Constructor Details
-
ExitableFilterAtomicReader
Constructor
-
-
Method Details
-
getPointValues
Description copied from class:LeafReaderReturns thePointValuesused for numeric or spatial searches for the given field, or null if there are no point fields.- Overrides:
getPointValuesin classFilterLeafReader- Throws:
IOException
-
terms
Description copied from class:LeafReaderReturns theTermsindex for this field, or null if it has none.- Overrides:
termsin classFilterLeafReader- Throws:
IOException
-
getReaderCacheHelper
Description copied from class:IndexReaderOptional method: Return aIndexReader.CacheHelperthat can be used to cache based on the content of this reader. Two readers that have different data or different sets of deleted documents will be considered different.A return value of
nullindicates that this reader is not suited for caching, which is typically the case for short-lived wrappers that alter the content of the wrapped reader.- Specified by:
getReaderCacheHelperin classIndexReader
-
getCoreCacheHelper
Description copied from class:LeafReaderOptional method: Return aIndexReader.CacheHelperthat can be used to cache based on the content of this leaf regardless of deletions. Two readers that have the same data but different sets of deleted documents or doc values updates may be considered equal. Consider usingIndexReader.getReaderCacheHelper()if you need deletions or dv updates to be taken into account.A return value of
nullindicates that this reader is not suited for caching, which is typically the case for short-lived wrappers that alter the content of the wrapped leaf reader.- Specified by:
getCoreCacheHelperin classLeafReader
-
getNumericDocValues
Description copied from class:LeafReaderReturnsNumericDocValuesfor this field, or null if no numeric doc values were indexed for this field. The returned instance should only be used by a single thread.- Overrides:
getNumericDocValuesin classFilterLeafReader- Throws:
IOException
-
getBinaryDocValues
Description copied from class:LeafReaderReturnsBinaryDocValuesfor this field, or null if no binary doc values were indexed for this field. The returned instance should only be used by a single thread.- Overrides:
getBinaryDocValuesin classFilterLeafReader- Throws:
IOException
-
getSortedDocValues
Description copied from class:LeafReaderReturnsSortedDocValuesfor this field, or null if noSortedDocValueswere indexed for this field. The returned instance should only be used by a single thread.- Overrides:
getSortedDocValuesin classFilterLeafReader- Throws:
IOException
-
getSortedNumericDocValues
Description copied from class:LeafReaderReturnsSortedNumericDocValuesfor this field, or null if noSortedNumericDocValueswere indexed for this field. The returned instance should only be used by a single thread.- Overrides:
getSortedNumericDocValuesin classFilterLeafReader- Throws:
IOException
-
getSortedSetDocValues
Description copied from class:LeafReaderReturnsSortedSetDocValuesfor this field, or null if noSortedSetDocValueswere indexed for this field. The returned instance should only be used by a single thread.- Overrides:
getSortedSetDocValuesin classFilterLeafReader- Throws:
IOException
-
checkAndThrow
ThrowsExitableDirectoryReader.ExitingReaderExceptionifQueryTimeout.shouldExit()returns true, or ifThread.interrupted()returns true.- Parameters:
in- underneath docValues
-