Uses of Class
org.apache.lucene.index.IndexDeletionPolicy
-
Packages that use IndexDeletionPolicy Package Description org.apache.lucene.index Code to maintain and access indices. -
-
Uses of IndexDeletionPolicy in org.apache.lucene.index
Subclasses of IndexDeletionPolicy in org.apache.lucene.index Modifier and Type Class Description classKeepOnlyLastCommitDeletionPolicyThisIndexDeletionPolicyimplementation that keeps only the most recent commit and immediately removes all prior commits after a new commit is done.classNoDeletionPolicyAnIndexDeletionPolicywhich keeps all index commits around, never deleting them.classPersistentSnapshotDeletionPolicyASnapshotDeletionPolicywhich adds a persistence layer so that snapshots can be maintained across the life of an application.classSnapshotDeletionPolicyAnIndexDeletionPolicythat wraps any otherIndexDeletionPolicyand adds the ability to hold and later release snapshots of an index.Fields in org.apache.lucene.index declared as IndexDeletionPolicy Modifier and Type Field Description protected IndexDeletionPolicyLiveIndexWriterConfig. delPolicyIndexDeletionPolicycontrolling when commit points are deleted.static IndexDeletionPolicyNoDeletionPolicy. INSTANCEThe single instance of this class.private IndexDeletionPolicyIndexFileDeleter. policyprivate IndexDeletionPolicySnapshotDeletionPolicy. primaryWrappedIndexDeletionPolicyMethods in org.apache.lucene.index that return IndexDeletionPolicy Modifier and Type Method Description IndexDeletionPolicyIndexWriterConfig. getIndexDeletionPolicy()IndexDeletionPolicyLiveIndexWriterConfig. getIndexDeletionPolicy()Returns theIndexDeletionPolicyspecified inIndexWriterConfig.setIndexDeletionPolicy(IndexDeletionPolicy)or the defaultKeepOnlyLastCommitDeletionPolicy/Methods in org.apache.lucene.index with parameters of type IndexDeletionPolicy Modifier and Type Method Description IndexWriterConfigIndexWriterConfig. setIndexDeletionPolicy(IndexDeletionPolicy delPolicy)Expert: allows an optionalIndexDeletionPolicyimplementation to be specified.Constructors in org.apache.lucene.index with parameters of type IndexDeletionPolicy Constructor Description IndexFileDeleter(java.lang.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.SnapshotDeletionPolicy(IndexDeletionPolicy primary)Sole constructor, taking the incomingIndexDeletionPolicyto wrap.
-