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 - IOExceptionpublic String[] list() throws IOException
IOExceptionpublic boolean fileExists(String name) throws IOException
IOExceptionpublic long fileModified(String name)
public void touchFile(String name)
public long fileLength(String name) throws IOException
IOExceptionpublic void deleteFile(String name) throws IOException
IOExceptionpublic void renameFile(String from, String to) throws IOException
IOExceptionpublic IndexOutput createOutput(String name) throws IOException
IOExceptionpublic IndexInput openInput(String name) throws IOException
IOExceptionpublic IndexInput openInput(String name, int bufferSize) throws IOException
IOExceptionpublic Lock makeLock(String name)
public void close()
throws IOException
IOExceptionpublic String toString()
Copyright © 2009 The Apache Software Foundation