All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.lucene.index.StaticFiles Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package org.apache.lucene.index;

import java.util.HashSet;
import java.util.Set;

import org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager;
import org.compass.core.lucene.engine.spellcheck.DefaultLuceneSpellCheckManager;

/**
 * @author kimchy
 */
public class StaticFiles {

    private static final Set staticFiles;

    static {
        staticFiles = new HashSet();
        staticFiles.add("segments.gen");
        staticFiles.add(DefaultLuceneSearchEngineIndexManager.CLEAR_CACHE_NAME);
        staticFiles.add(DefaultLuceneSpellCheckManager.SPELL_CHECK_VERSION_FILENAME);
    }

    public static boolean isStaticFile(String name) {
        return staticFiles.contains(name);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy