public class ReadOnlyFileSystemDirectory
extends org.apache.lucene.store.Directory
| Constructor and Description |
|---|
ReadOnlyFileSystemDirectory(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,
org.apache.lucene.store.IOContext context) |
void |
deleteFile(String name) |
boolean |
fileExists(String name) |
long |
fileLength(String name) |
String[] |
list() |
String[] |
listAll() |
org.apache.lucene.store.Lock |
makeLock(String name) |
org.apache.lucene.store.IndexInput |
openInput(String name,
org.apache.lucene.store.IOContext context) |
void |
sync(Collection<String> names) |
String |
toString() |
public ReadOnlyFileSystemDirectory(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
IOExceptionpublic String[] listAll() throws IOException
listAll in class org.apache.lucene.store.DirectoryIOExceptionpublic boolean fileExists(String name) throws IOException
fileExists in class org.apache.lucene.store.DirectoryIOExceptionpublic 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 org.apache.lucene.store.IndexOutput createOutput(String name, org.apache.lucene.store.IOContext context) throws IOException
createOutput in class org.apache.lucene.store.DirectoryIOExceptionpublic void sync(Collection<String> names) throws IOException
sync in class org.apache.lucene.store.DirectoryIOExceptionpublic org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) 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 interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.store.DirectoryIOExceptionpublic String toString()
toString in class org.apache.lucene.store.DirectoryCopyright © 2008–2013 The Apache Software Foundation. All rights reserved.