类org.apache.lucene.index.IndexFileNameFilter源码实例Demo

下面列出了怎么用org.apache.lucene.index.IndexFileNameFilter的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: alfresco-repository   文件: FSDirectory.java
private void create() throws IOException {
  if (directory.exists()) {
    String[] files = directory.list(IndexFileNameFilter.getFilter());            // clear old files
    if (files == null)
      throw new IOException("cannot read directory " + directory.getAbsolutePath() + ": list() returned null");
    for (int i = 0; i < files.length; i++) {
      File file = new File(directory, files[i]);
      if (!file.delete())
        throw new IOException("Cannot delete " + file);
    }
  }
  lockFactory.clearLock(IndexWriter.WRITE_LOCK_NAME);
}
 
源代码2 项目: alfresco-repository   文件: FSDirectory.java
/** Returns an array of strings, one for each Lucene index file in the directory. */
public String[] list() {
  ensureOpen();
  return directory.list(IndexFileNameFilter.getFilter());
}
 
源代码3 项目: RDFS   文件: LuceneIndexFileNameFilter.java
private LuceneIndexFileNameFilter() {
  luceneFilter = IndexFileNameFilter.getFilter();
}
 
源代码4 项目: hadoop-gpu   文件: LuceneIndexFileNameFilter.java
private LuceneIndexFileNameFilter() {
  luceneFilter = IndexFileNameFilter.getFilter();
}
 
 类所在包
 类方法
 同包方法