public class FileSystemDirectory
extends org.apache.lucene.store.Directory
Constructor and Description |
---|
FileSystemDirectory(FileSystem fs,
Path directory,
boolean create,
Configuration conf)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.lucene.store.IndexOutput |
createOutput(String name) |
void |
deleteFile(String name) |
boolean |
fileExists(String name) |
long |
fileLength(String name) |
long |
fileModified(String name) |
String[] |
list() |
org.apache.lucene.store.Lock |
makeLock(String name) |
org.apache.lucene.store.IndexInput |
openInput(String name) |
org.apache.lucene.store.IndexInput |
openInput(String name,
int bufferSize) |
void |
renameFile(String from,
String to) |
String |
toString() |
void |
touchFile(String name) |
public FileSystemDirectory(FileSystem fs, Path directory, boolean create, Configuration conf) throws IOException
fs
- directory
- create
- conf
- IOException
public String[] list() throws IOException
list
in class org.apache.lucene.store.Directory
IOException
public boolean fileExists(String name) throws IOException
fileExists
in class org.apache.lucene.store.Directory
IOException
public long fileModified(String name)
fileModified
in class org.apache.lucene.store.Directory
public void touchFile(String name)
touchFile
in class org.apache.lucene.store.Directory
public long fileLength(String name) throws IOException
fileLength
in class org.apache.lucene.store.Directory
IOException
public void deleteFile(String name) throws IOException
deleteFile
in class org.apache.lucene.store.Directory
IOException
public void renameFile(String from, String to) throws IOException
renameFile
in class org.apache.lucene.store.Directory
IOException
public org.apache.lucene.store.IndexOutput createOutput(String name) throws IOException
createOutput
in class org.apache.lucene.store.Directory
IOException
public org.apache.lucene.store.IndexInput openInput(String name) throws IOException
openInput
in class org.apache.lucene.store.Directory
IOException
public org.apache.lucene.store.IndexInput openInput(String name, int bufferSize) throws IOException
openInput
in class org.apache.lucene.store.Directory
IOException
public org.apache.lucene.store.Lock makeLock(String name)
makeLock
in class org.apache.lucene.store.Directory
public void close() throws IOException
close
in class org.apache.lucene.store.Directory
IOException
public String toString()
toString
in class org.apache.lucene.store.Directory
Copyright © 2010 The Apache Software Foundation