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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
IndexCommit.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 INDEXCOMMIT_H
8 #define INDEXCOMMIT_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
22 class LPPAPI IndexCommit : public LuceneObject {
23 public:
24  virtual ~IndexCommit();
25 
27 
28 public:
30  virtual String getSegmentsFileName() = 0;
31 
33  virtual HashSet<String> getFileNames() = 0;
34 
36  virtual DirectoryPtr getDirectory() = 0;
37 
46  virtual void deleteCommit() = 0;
47 
48  virtual bool isDeleted() = 0;
49 
51  virtual bool isOptimized() = 0;
52 
54  virtual bool equals(const LuceneObjectPtr& other);
55 
56  virtual int32_t hashCode();
57 
60  virtual int64_t getVersion() = 0;
61 
63  virtual int64_t getGeneration() = 0;
64 
67  virtual int64_t getTimestamp();
68 
71  virtual MapStringString getUserData() = 0;
72 };
73 
74 }
75 
76 #endif

clucene.sourceforge.net