Uses of Class
org.apache.lucene.index.IndexDeletionPolicy
Packages that use IndexDeletionPolicy
-
Uses of IndexDeletionPolicy in org.apache.lucene.index
Subclasses of IndexDeletionPolicy in org.apache.lucene.indexModifier and TypeClassDescriptionfinal classThisIndexDeletionPolicyimplementation that keeps only the most recent commit and immediately removes all prior commits after a new commit is done.final classAnIndexDeletionPolicywhich keeps all index commits around, never deleting them.classASnapshotDeletionPolicywhich adds a persistence layer so that snapshots can be maintained across the life of an application.classAnIndexDeletionPolicythat wraps any otherIndexDeletionPolicyand adds the ability to hold and later release snapshots of an index.Fields in org.apache.lucene.index declared as IndexDeletionPolicyModifier and TypeFieldDescriptionprotected IndexDeletionPolicyLiveIndexWriterConfig.delPolicyIndexDeletionPolicycontrolling when commit points are deleted.static final IndexDeletionPolicyNoDeletionPolicy.INSTANCEThe single instance of this class.private final IndexDeletionPolicyIndexFileDeleter.policyprivate final IndexDeletionPolicySnapshotDeletionPolicy.primaryWrappedIndexDeletionPolicyMethods in org.apache.lucene.index that return IndexDeletionPolicyModifier and TypeMethodDescriptionIndexWriterConfig.getIndexDeletionPolicy()LiveIndexWriterConfig.getIndexDeletionPolicy()Returns theIndexDeletionPolicyspecified inIndexWriterConfig.setIndexDeletionPolicy(IndexDeletionPolicy)or the defaultKeepOnlyLastCommitDeletionPolicy/Methods in org.apache.lucene.index with parameters of type IndexDeletionPolicyModifier and TypeMethodDescriptionIndexWriterConfig.setIndexDeletionPolicy(IndexDeletionPolicy delPolicy) Expert: allows an optionalIndexDeletionPolicyimplementation to be specified.Constructors in org.apache.lucene.index with parameters of type IndexDeletionPolicyModifierConstructorDescriptionIndexFileDeleter(String[] files, Directory directoryOrig, Directory directory, IndexDeletionPolicy policy, SegmentInfos segmentInfos, InfoStream infoStream, IndexWriter writer, boolean initialIndexExists, boolean isReaderInit) Initialize the deleter: find all previous commits in the Directory, incref the files they reference, call the policy to let it delete commits.PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary, Directory dir) PersistentSnapshotDeletionPolicywraps anotherIndexDeletionPolicyto enable flexible snapshotting, passingIndexWriterConfig.OpenMode.CREATE_OR_APPENDby default.PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary, Directory dir, IndexWriterConfig.OpenMode mode) PersistentSnapshotDeletionPolicywraps anotherIndexDeletionPolicyto enable flexible snapshotting.Sole constructor, taking the incomingIndexDeletionPolicyto wrap.