7#ifndef INDEXDELETIONPOLICY_H
8#define INDEXDELETIONPOLICY_H
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Policy for deletion of stale index commits. Implement this interface, and pass it to one of the Index...
Definition: IndexDeletionPolicy.h:27
virtual void onCommit(Collection< IndexCommitPtr > commits)=0
This is called each time the writer completed a commit. This gives the policy a chance to remove old ...
virtual ~IndexDeletionPolicy()
virtual void onInit(Collection< IndexCommitPtr > commits)=0
This is called once when a writer is first instantiated to give the policy a chance to remove old com...
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Definition: AbstractAllTermDocs.h:12