for (int i = 0; i < IndexFileNames.INDEX_EXTENSIONS.length; i++) {
if (name.endsWith("."+IndexFileNames.INDEX_EXTENSIONS[i]))
return true;
}
if (name.equals(IndexFileNames.DELETABLE)) return true;
else if (name.equals(IndexFileNames.SEGMENTS)) return true;
else if (name.matches(".+\\.f\\d+")) return true;
return false;