public class FileSystemDirectory
extends org.apache.lucene.store.Directory
| Constructor and Description |
|---|
FileSystemDirectory(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path directory,
boolean create,
org.apache.hadoop.conf.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(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path directory,
boolean create,
org.apache.hadoop.conf.Configuration conf)
throws IOException
fs - directory - create - conf - IOExceptionpublic String[] list() throws IOException
list in class org.apache.lucene.store.DirectoryIOExceptionpublic boolean fileExists(String name) throws IOException
fileExists in class org.apache.lucene.store.DirectoryIOExceptionpublic long fileModified(String name)
fileModified in class org.apache.lucene.store.Directorypublic void touchFile(String name)
touchFile in class org.apache.lucene.store.Directorypublic long fileLength(String name) throws IOException
fileLength in class org.apache.lucene.store.DirectoryIOExceptionpublic void deleteFile(String name) throws IOException
deleteFile in class org.apache.lucene.store.DirectoryIOExceptionpublic void renameFile(String from, String to) throws IOException
renameFile in class org.apache.lucene.store.DirectoryIOExceptionpublic org.apache.lucene.store.IndexOutput createOutput(String name) throws IOException
createOutput in class org.apache.lucene.store.DirectoryIOExceptionpublic org.apache.lucene.store.IndexInput openInput(String name) throws IOException
openInput in class org.apache.lucene.store.DirectoryIOExceptionpublic org.apache.lucene.store.IndexInput openInput(String name, int bufferSize) throws IOException
openInput in class org.apache.lucene.store.DirectoryIOExceptionpublic org.apache.lucene.store.Lock makeLock(String name)
makeLock in class org.apache.lucene.store.Directorypublic void close()
throws IOException
close in class org.apache.lucene.store.DirectoryIOExceptionCopyright © 2009 The Apache Software Foundation