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
IndexFileNames.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 INDEXFILENAMES_H
8 #define INDEXFILENAMES_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
15 class IndexFileNames : public LuceneObject
16 {
17 public:
18 virtual ~IndexFileNames();
19 LUCENE_CLASS(IndexFileNames);
20
21 public:
23 static const String& SEGMENTS();
24
26 static const String& SEGMENTS_GEN();
27
29 static const String& DELETABLE();
30
32 static const String& NORMS_EXTENSION();
33
35 static const String& FREQ_EXTENSION();
36
38 static const String& PROX_EXTENSION();
39
41 static const String& TERMS_EXTENSION();
42
44 static const String& TERMS_INDEX_EXTENSION();
45
47 static const String& FIELDS_INDEX_EXTENSION();
48
50 static const String& FIELDS_EXTENSION();
51
53 static const String& VECTORS_FIELDS_EXTENSION();
54
56 static const String& VECTORS_DOCUMENTS_EXTENSION();
57
59 static const String& VECTORS_INDEX_EXTENSION();
60
62 static const String& COMPOUND_FILE_EXTENSION();
63
65 static const String& COMPOUND_FILE_STORE_EXTENSION();
66
68 static const String& DELETES_EXTENSION();
69
71 static const String& FIELD_INFOS_EXTENSION();
72
74 static const String& PLAIN_NORMS_EXTENSION();
75
77 static const String& SEPARATE_NORMS_EXTENSION();
78
80 static const String& GEN_EXTENSION();
81
86 static const HashSet<String> INDEX_EXTENSIONS();
87
90 static const HashSet<String> INDEX_EXTENSIONS_IN_COMPOUND_FILE();
91
92 static const HashSet<String> STORE_INDEX_EXTENSIONS();
93 static const HashSet<String> NON_STORE_INDEX_EXTENSIONS();
94
96 static const HashSet<String> COMPOUND_EXTENSIONS();
97
99 static const HashSet<String> VECTOR_EXTENSIONS();
100
105 static String fileNameFromGeneration(const String& base, const String& extension, int64_t gen);
106
109 static bool isDocStoreFile(const String& fileName);
110
112 static String segmentFileName(const String& segmentName, const String& ext);
113 };
114 }
115
116 #endif

clucene.sourceforge.net