|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| IndexFileNames | Line # 25 | 0 | 0 | - |
-1.0
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| No Tests | |||
| 1 | package org.apache.lucene.index; | |
| 2 | ||
| 3 | /** | |
| 4 | * Copyright 2004 The Apache Software Foundation | |
| 5 | * | |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 7 | * you may not use this file except in compliance with the License. | |
| 8 | * You may obtain a copy of the License at | |
| 9 | * | |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 11 | * | |
| 12 | * Unless required by applicable law or agreed to in writing, software | |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 15 | * See the License for the specific language governing permissions and | |
| 16 | * limitations under the License. | |
| 17 | */ | |
| 18 | ||
| 19 | /** | |
| 20 | * Useful constants representing filenames and extensions used by lucene | |
| 21 | * | |
| 22 | * @author Bernhard Messer | |
| 23 | * @version $rcs = ' $Id: Exp $ ' ; | |
| 24 | */ | |
| 25 | final class IndexFileNames { | |
| 26 | ||
| 27 | /** Name of the index segment file */ | |
| 28 | static final String SEGMENTS = "segments"; | |
| 29 | ||
| 30 | /** Name of the index deletable file */ | |
| 31 | static final String DELETABLE = "deletable"; | |
| 32 | ||
| 33 | /** | |
| 34 | * This array contains all filename extensions used by Lucene's index files, with | |
| 35 | * one exception, namely the extension made up from <code>.f</code> + a number. | |
| 36 | * Also note that two of Lucene's files (<code>deletable</code> and | |
| 37 | * <code>segments</code>) don't have any filename extension. | |
| 38 | */ | |
| 39 | static final String INDEX_EXTENSIONS[] = new String[] { | |
| 40 | "cfs", "fnm", "fdx", "fdt", "tii", "tis", "frq", "prx", "del", | |
| 41 | "tvx", "tvd", "tvf", "tvp" }; | |
| 42 | ||
| 43 | /** File extensions of old-style index files */ | |
| 44 | static final String COMPOUND_EXTENSIONS[] = new String[] { | |
| 45 | "fnm", "frq", "prx", "fdx", "fdt", "tii", "tis" | |
| 46 | }; | |
| 47 | ||
| 48 | /** File extensions for term vector support */ | |
| 49 | static final String VECTOR_EXTENSIONS[] = new String[] { | |
| 50 | "tvx", "tvd", "tvf" | |
| 51 | }; | |
| 52 | ||
| 53 | } | |
|
||||||||||