Lucene++ - a full-featured, c++ search engine
API Documentation


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
SnapshotDeletionPolicy.h
Go to the documentation of this file.
1 
2 // Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef SNAPSHOTDELETIONPOLICY_H
8 #define SNAPSHOTDELETIONPOLICY_H
9 
10 #include "IndexDeletionPolicy.h"
11 
12 namespace Lucene {
13 
15 public:
17  virtual ~SnapshotDeletionPolicy();
18 
20 
21 protected:
22  IndexCommitPtr lastCommit;
24  String _snapshot;
25 
26 public:
29  virtual void onInit(Collection<IndexCommitPtr> commits);
30 
33  virtual void onCommit(Collection<IndexCommitPtr> commits);
34 
40  virtual IndexCommitPtr snapshot();
41 
43  virtual void release();
44 
45 protected:
47 
48  friend class MyCommitPoint;
49 };
50 
51 }
52 
53 #endif

clucene.sourceforge.net