public class NativeFSDirectory
extends FSDirectory
| Modifier and Type | Field and Description |
|---|---|
private static HashMap<File,LockFactory> |
lockFactories |
| Constructor and Description |
|---|
NativeFSDirectory() |
| Modifier and Type | Method and Description |
|---|---|
static FSDirectory |
getDirectory(File file)
Returns the directory instance for the named location.
|
static FSDirectory |
getDirectory(String path)
Returns the directory instance for the named location.
|
private static LockFactory |
getLockFactory(File f)
Get the lock factory for the given directory.
|
public static FSDirectory getDirectory(String path)
throws IOException
path - the path to the directory.IOExceptionpublic static FSDirectory getDirectory(File file)
throws IOException
file - the path to the directory.IOExceptionprivate static LockFactory getLockFactory(File f)
throws IOException
IOException