Module org.elasticsearch.server
Package org.elasticsearch.index.engine
Class PruningMergePolicy.PruningDocValuesProducer
java.lang.Object
org.apache.lucene.codecs.DocValuesProducer
org.elasticsearch.index.codec.FilterDocValuesProducer
org.elasticsearch.index.engine.PruningMergePolicy.PruningDocValuesProducer
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
PruningMergePolicy
DocValuesProducer that will filter out _recovery_source and _seq_no values
for documents that are fully replicated.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPruningDocValuesProducer(org.apache.lucene.codecs.DocValuesProducer in, org.apache.lucene.util.BitSet recoverySourceToKeep, String pruneNumericDVFieldName, boolean pruneSeqNo) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.index.NumericDocValuesgetNumeric(org.apache.lucene.index.FieldInfo field) booleanshouldPruneNumericDocValues(String fieldName) Should this field be filtered in the new segmentMethods inherited from class org.elasticsearch.index.codec.FilterDocValuesProducer
checkIntegrity, close, getBinary, getIn, getSkipper, getSorted, getSortedNumeric, getSortedSetMethods inherited from class org.apache.lucene.codecs.DocValuesProducer
getMergeInstance
-
Constructor Details
-
PruningDocValuesProducer
protected PruningDocValuesProducer(org.apache.lucene.codecs.DocValuesProducer in, org.apache.lucene.util.BitSet recoverySourceToKeep, String pruneNumericDVFieldName, boolean pruneSeqNo)
-
-
Method Details
-
getNumeric
public org.apache.lucene.index.NumericDocValues getNumeric(org.apache.lucene.index.FieldInfo field) throws IOException - Overrides:
getNumericin classFilterDocValuesProducer- Throws:
IOException
-
shouldPruneNumericDocValues
Should this field be filtered in the new segment
-