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
  • 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 by acquireIndexCommit(boolean).
      Returns:
      true if the acquired commit can be clean up.
    • getSafeCommitInfo

      public abstract SafeCommitInfo getSafeCommitInfo()
      Returns:
      information about the safe commit
    • hasAcquiredIndexCommitsForTesting

      public abstract boolean hasAcquiredIndexCommitsForTesting()
    • hasUnreferencedCommits

      public abstract boolean hasUnreferencedCommits()