1 
2 #ifndef _lucene_index_IndexFileNames_
3 #define _lucene_index_IndexFileNames_
4 
5 #include "CLucene/util/Array.h"
6 
CL_NS_DEF(index)7 CL_NS_DEF(index)
8 
9 class CLUCENE_EXPORT IndexFileNames {
10 	static CL_NS(util)::ConstValueArray<const char*> _INDEX_EXTENSIONS;
11 	static CL_NS(util)::ConstValueArray<const char*> _INDEX_EXTENSIONS_IN_COMPOUND_FILE;
12 	static CL_NS(util)::ConstValueArray<const char*> _STORE_INDEX_EXTENSIONS;
13 	static CL_NS(util)::ConstValueArray<const char*> _NON_STORE_INDEX_EXTENSIONS;
14 	static CL_NS(util)::ConstValueArray<const char*> _COMPOUND_EXTENSIONS;
15 	static CL_NS(util)::ConstValueArray<const char*> _VECTOR_EXTENSIONS;
16 public:
17 	static const char* SEGMENTS;
18 	static const char* SEGMENTS_GEN;
19 	static const char* DELETABLE;
20 	static const char* NORMS_EXTENSION;
21 	static const char* FREQ_EXTENSION;
22 	static const char* PROX_EXTENSION;
23 	static const char* TERMS_EXTENSION;
24 	static const char* TERMS_INDEX_EXTENSION;
25 	static const char* FIELDS_INDEX_EXTENSION;
26 	static const char* FIELDS_EXTENSION;
27 	static const char* VECTORS_FIELDS_EXTENSION;
28 	static const char* VECTORS_DOCUMENTS_EXTENSION;
29 	static const char* VECTORS_INDEX_EXTENSION;
30 	static const char* COMPOUND_FILE_EXTENSION;
31 	static const char* COMPOUND_FILE_STORE_EXTENSION;
32 	static const char* DELETES_EXTENSION;
33 	static const char* FIELD_INFOS_EXTENSION;
34 	static const char* PLAIN_NORMS_EXTENSION;
35 	static const char* SEPARATE_NORMS_EXTENSION;
36 	static const char* GEN_EXTENSION;
37 
38 	LUCENE_STATIC_CONSTANT(int32_t,COMPOUND_EXTENSIONS_LENGTH=7);
39 	LUCENE_STATIC_CONSTANT(int32_t,VECTOR_EXTENSIONS_LENGTH=3);
40 	LUCENE_STATIC_CONSTANT(int32_t,STORE_INDEX_EXTENSIONS_LENGTH=5);
41 
42 	static CL_NS(util)::ConstValueArray<const char*>& INDEX_EXTENSIONS();
43 	static CL_NS(util)::ConstValueArray<const char*>& INDEX_EXTENSIONS_IN_COMPOUND_FILE();
44 	static CL_NS(util)::ConstValueArray<const char*>& STORE_INDEX_EXTENSIONS();
45 	static CL_NS(util)::ConstValueArray<const char*>& NON_STORE_INDEX_EXTENSIONS();
46 	static CL_NS(util)::ConstValueArray<const char*>& COMPOUND_EXTENSIONS();
47 	static CL_NS(util)::ConstValueArray<const char*>& VECTOR_EXTENSIONS();
48 
49   static std::string fileNameFromGeneration( const char* base, const char* extension, int64_t gen );
50 	static bool isDocStoreFile( const char* fileName );
51 
52 };
53 
54 CL_NS_END
55 #endif
56