Module org.elasticsearch.server
Package org.elasticsearch.index.engine
Class ElasticsearchIndexDeletionPolicy
java.lang.Object
org.apache.lucene.index.IndexDeletionPolicy
org.elasticsearch.index.engine.ElasticsearchIndexDeletionPolicy
- Direct Known Subclasses:
CombinedDeletionPolicy
public abstract class ElasticsearchIndexDeletionPolicy
extends org.apache.lucene.index.IndexDeletionPolicy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.apache.lucene.index.IndexCommitacquireIndexCommit(boolean acquiringSafeCommit) Captures the most recent commit point or the most recent safe commit point.abstract SafeCommitInfoabstract booleanabstract booleanabstract booleanreleaseIndexCommit(org.apache.lucene.index.IndexCommit acquiredIndexCommit) Releases an index commit that was acquired byacquireIndexCommit(boolean).Methods inherited from class org.apache.lucene.index.IndexDeletionPolicy
onCommit, onInit
-
Constructor Details
-
ElasticsearchIndexDeletionPolicy
public ElasticsearchIndexDeletionPolicy()
-
-
Method Details
-
acquireIndexCommit
public abstract org.apache.lucene.index.IndexCommit acquireIndexCommit(boolean acquiringSafeCommit) Captures the most recent commit point or the most recent safe commit point. Index files of the capturing commit point won't be released until the commit reference is closed.- Parameters:
acquiringSafeCommit- captures the most recent safe commit point if true; otherwise captures the most recent commit point.
-
releaseIndexCommit
public abstract boolean releaseIndexCommit(org.apache.lucene.index.IndexCommit acquiredIndexCommit) Releases an index commit that was acquired byacquireIndexCommit(boolean).- Returns:
- true if the acquired commit can be clean up.
-
getSafeCommitInfo
- Returns:
- information about the safe commit
-
hasAcquiredIndexCommitsForTesting
public abstract boolean hasAcquiredIndexCommitsForTesting() -
hasUnreferencedCommits
public abstract boolean hasUnreferencedCommits()
-