Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef SNAPSHOTDELETIONPOLICY_H
8 #define SNAPSHOTDELETIONPOLICY_H
48 friend class MyCommitPoint;
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
SnapshotDeletionPolicy(const IndexDeletionPolicyPtr &primary)
Policy for deletion of stale index commits. Implement this interface, and pass it to one of the Index...
Definition: IndexDeletionPolicy.h:27
IndexCommitPtr lastCommit
Definition: SnapshotDeletionPolicy.h:19
virtual ~SnapshotDeletionPolicy()
IndexDeletionPolicyPtr primary
Definition: SnapshotDeletionPolicy.h:23
virtual IndexCommitPtr snapshot()
Take a snapshot of the most recent commit to the index. You must call release() to free this snapshot...
virtual void release()
Release the currently held snapshot.
virtual void onInit(Collection< IndexCommitPtr > commits)
This is called once when a writer is first instantiated to give the policy a chance to remove old com...
Definition: AbstractAllTermDocs.h:12
String _snapshot
Definition: SnapshotDeletionPolicy.h:24
boost::shared_ptr< IndexDeletionPolicy > IndexDeletionPolicyPtr
Definition: LuceneTypes.h:153
Collection< IndexCommitPtr > wrapCommits(Collection< IndexCommitPtr > commits)
virtual void onCommit(Collection< IndexCommitPtr > commits)
This is called each time the writer completed a commit. This gives the policy a chance to remove old ...
Definition: SnapshotDeletionPolicy.h:14
boost::shared_ptr< IndexCommit > IndexCommitPtr
Definition: LuceneTypes.h:152
clucene.sourceforge.net