Class PruningMergePolicy

java.lang.Object
org.apache.lucene.index.MergePolicy
org.apache.lucene.index.FilterMergePolicy
org.apache.lucene.index.OneMergeWrappingMergePolicy
org.elasticsearch.index.engine.PruningMergePolicy
All Implemented Interfaces:
org.apache.lucene.util.Unwrappable<org.apache.lucene.index.MergePolicy>

public final class PruningMergePolicy extends org.apache.lucene.index.OneMergeWrappingMergePolicy
MergePolicy that will prune _recovery_source, _seq_no and associated supporting fields once they are no longer needed for replication.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    DocValuesProducer that will filter out _recovery_source and _seq_no values for documents that are fully replicated.

    Nested classes/interfaces inherited from class org.apache.lucene.index.MergePolicy

    org.apache.lucene.index.MergePolicy.MergeAbortedException, org.apache.lucene.index.MergePolicy.MergeContext, org.apache.lucene.index.MergePolicy.MergeException, org.apache.lucene.index.MergePolicy.MergeObserver, org.apache.lucene.index.MergePolicy.MergeSpecification, org.apache.lucene.index.MergePolicy.OneMerge, org.apache.lucene.index.MergePolicy.OneMergeProgress
  • Field Summary

    Fields inherited from class org.apache.lucene.index.FilterMergePolicy

    in

    Fields inherited from class org.apache.lucene.index.MergePolicy

    DEFAULT_MAX_CFS_SEGMENT_SIZE, DEFAULT_NO_CFS_RATIO, maxCFSSegmentSize, noCFSRatio
  • Method Summary

    Methods inherited from class org.apache.lucene.index.OneMergeWrappingMergePolicy

    findForcedDeletesMerges, findForcedMerges, findFullFlushMerges, findMerges

    Methods inherited from class org.apache.lucene.index.FilterMergePolicy

    findMerges, getMaxCFSSegmentSizeMB, getNoCFSRatio, keepFullyDeletedSegment, maxFullFlushMergeSize, numDeletesToMerge, setMaxCFSSegmentSizeMB, setNoCFSRatio, size, toString, unwrap, useCompoundFile

    Methods inherited from class org.apache.lucene.index.MergePolicy

    assertDelCount, isMerged, message, segString, verbose

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait