public class FileSystemDirectory
extends Directory
构造器和说明 |
---|
FileSystemDirectory(FileSystem fs,
Path directory,
boolean create,
Configuration conf)
Constructor
|
限定符和类型 | 方法和说明 |
---|---|
void |
close() |
IndexOutput |
createOutput(String name) |
void |
deleteFile(String name) |
boolean |
fileExists(String name) |
long |
fileLength(String name) |
long |
fileModified(String name) |
String[] |
list() |
Lock |
makeLock(String name) |
IndexInput |
openInput(String name) |
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
IOException
public boolean fileExists(String name) throws IOException
IOException
public long fileModified(String name)
public void touchFile(String name)
public long fileLength(String name) throws IOException
IOException
public void deleteFile(String name) throws IOException
IOException
public void renameFile(String from, String to) throws IOException
IOException
public IndexOutput createOutput(String name) throws IOException
IOException
public IndexInput openInput(String name) throws IOException
IOException
public IndexInput openInput(String name, int bufferSize) throws IOException
IOException
public Lock makeLock(String name)
public void close() throws IOException
IOException
public String toString()
Copyright © 2009 The Apache Software Foundation