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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
IndexCommit.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 {
24 public:
25 virtual ~IndexCommit();
26
27 LUCENE_CLASS(IndexCommit);
28
29 public:
31 virtual String getSegmentsFileName() = 0;
32
34 virtual HashSet<String> getFileNames() = 0;
35
37 virtual DirectoryPtr getDirectory() = 0;
38
47 virtual void deleteCommit() = 0;
48
49 virtual bool isDeleted() = 0;
50
52 virtual bool isOptimized() = 0;
53
55 virtual bool equals(LuceneObjectPtr other);
56
57 virtual int32_t hashCode();
58
61 virtual int64_t getVersion() = 0;
62
64 virtual int64_t getGeneration() = 0;
65
68 virtual int64_t getTimestamp();
69
72 virtual MapStringString getUserData() = 0;
73 };
74 }
75
76 #endif

clucene.sourceforge.net