Package org.apache.lucene.search
Interface SegmentCacheable
- All Known Implementing Classes:
BM25FQuery.BM25FWeight,BooleanWeight,CachingExpressionValueSource,CompletionWeight,ConstantScoreWeight,ContextQuery.ContextCompletionWeight,CoveringQuery.CoveringWeight,DisjunctionMaxQuery.DisjunctionMaxWeight,DoubleValuesSource,DoubleValuesSource.ConstantValuesSource,DoubleValuesSource.FieldValuesSource,DoubleValuesSource.LongDoubleValuesSource,DoubleValuesSource.QueryDoubleValuesSource,DoubleValuesSource.WeightDoubleValuesSource,ExpressionValueSource,FeatureDoubleValuesSource,FilterWeight,FunctionQuery.FunctionWeight,FunctionRangeQuery.FunctionRangeWeight,FunctionScoreQuery.FunctionScoreWeight,FunctionScoreQuery.MultiplicativeBoostValuesSource,FunctionScoreQuery.QueryBoostValuesSource,FuzzyCompletionQuery.FuzzyCompletionWeight,GlobalOrdinalsQuery.W,GlobalOrdinalsWithScoreQuery.W,IndexReaderFunctions.IndexReaderDoubleValuesSource,IndexReaderFunctions.NoCacheConstantDoubleValuesSource,IndexReaderFunctions.NoCacheConstantLongValuesSource,IndexReaderFunctions.SumTotalTermFreqValuesSource,IndexReaderFunctions.TermFreqDoubleValuesSource,IntervalQuery.IntervalWeight,LongValuesSource,LongValuesSource.ConstantLongValuesSource,LongValuesSource.DoubleLongValuesSource,LongValuesSource.FieldValuesSource,LRUQueryCache.CachingWrapperWeight,PayloadScoreQuery.PayloadSpanWeight,PhraseWeight,SpanContainingQuery.SpanContainingWeight,SpanContainQuery.SpanContainWeight,SpanNearQuery.SpanGapQuery.SpanGapWeight,SpanNearQuery.SpanNearWeight,SpanNotQuery.SpanNotWeight,SpanOrQuery.SpanOrWeight,SpanPayloadCheckQuery.SpanPayloadCheckWeight,SpanPositionCheckQuery.SpanPositionCheckWeight,SpanTermQuery.SpanTermWeight,SpanWeight,SpanWithinQuery.SpanWithinWeight,SynonymQuery.SynonymWeight,TermAutomatonQuery.TermAutomatonWeight,TermQuery.TermWeight,ToChildBlockJoinQuery.ToChildBlockJoinWeight,ToParentBlockJoinQuery.BlockJoinWeight,ValueSource.WrappedDoubleValuesSource,ValueSource.WrappedLongValuesSource,Weight
public interface SegmentCacheable
Interface defining whether or not an object can be cached against a
LeafReader
Objects that depend only on segment-immutable structures such as Points or postings lists
can just return true from isCacheable(LeafReaderContext)
Objects that depend on doc values should return DocValues.isCacheable(LeafReaderContext, String...), which
will check to see if the doc values fields have been updated. Updated doc values fields are not suitable
for cacheing.
Objects that are not segment-immutable, such as those that rely on global statistics or scores,
should return false-
Method Summary
-
Method Details
-
isCacheable
- Returns:
trueif the object can be cached against a given leaf
-