public class DirectoryUtils extends Object
Constructor and Description |
---|
DirectoryUtils() |
Modifier and Type | Method and Description |
---|---|
static File |
createIndexDir(File baseDir,
String indexPath) |
static long |
dirSize(org.apache.lucene.store.Directory directory) |
static long |
getFileLength(org.apache.lucene.store.Directory dir,
String fileName)
Get the file length in best effort basis.
|
static int |
getNumDocs(org.apache.lucene.store.Directory dir) |
public static long getFileLength(org.apache.lucene.store.Directory dir, String fileName)
public static long dirSize(org.apache.lucene.store.Directory directory) throws IOException
IOException
public static File createIndexDir(File baseDir, String indexPath) throws IOException
IOException
public static int getNumDocs(org.apache.lucene.store.Directory dir) throws IOException
IOException
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.