|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.hadoop.fs.FileSystem
org.apache.hadoop.dfs.HftpFileSystem
public class HftpFileSystem
An implementation of a protocol for accessing filesystems over HTTP. The following implementation provides a limited, read-only interface to a filesystem over HTTP.
ListPathsServlet,
FileDataServlet| Field Summary | |
|---|---|
protected static SimpleDateFormat |
df
|
| Fields inherited from class org.apache.hadoop.fs.FileSystem |
|---|
LOG |
| Constructor Summary | |
|---|---|
HftpFileSystem()
|
|
| Method Summary | |
|---|---|
FSDataOutputStream |
create(Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
Opens an FSDataOutputStream at the indicated Path with write-progress reporting. |
boolean |
delete(Path f)
Delete a file |
boolean |
exists(Path f)
Check if exists. |
FileStatus |
getFileStatus(Path f)
|
URI |
getUri()
Returns a URI whose scheme and authority identify this FileSystem. |
Path |
getWorkingDirectory()
Get the current working directory for the given file system |
void |
initialize(URI name,
Configuration conf)
Called after a new FileSystem instance is constructed. |
FileStatus[] |
listStatus(Path f)
|
boolean |
mkdirs(Path f)
Make the given file and all non-existent parents into directories. |
FSDataInputStream |
open(Path f,
int buffersize)
Opens an FSDataInputStream at the indicated Path. |
boolean |
rename(Path src,
Path dst)
Renames Path src to Path dst. |
void |
setWorkingDirectory(Path f)
Set the current working directory for the given file system. |
| Methods inherited from class org.apache.hadoop.fs.FileSystem |
|---|
checkPath, close, closeAll, completeLocalOutput, copyFromLocalFile, copyFromLocalFile, copyFromLocalFile, copyToLocalFile, copyToLocalFile, create, create, create, create, create, create, create, create, createNewFile, get, get, getBlockSize, getContentLength, getDefaultBlockSize, getDefaultReplication, getFileCacheHints, getLength, getLocal, getName, getNamed, getReplication, getUsed, globPaths, globPaths, isDirectory, isFile, listPaths, listPaths, listPaths, listPaths, makeQualified, moveFromLocalFile, moveToLocalFile, open, parseArgs, setReplication, startLocalOutput |
| Methods inherited from class org.apache.hadoop.conf.Configured |
|---|
getConf, setConf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final SimpleDateFormat df
| Constructor Detail |
|---|
public HftpFileSystem()
| Method Detail |
|---|
public void initialize(URI name,
Configuration conf)
throws IOException
FileSystem
initialize in class FileSystemname - a uri whose authority section names the host, port, etc.
for this FileSystemconf - the configuration
IOExceptionpublic URI getUri()
FileSystem
getUri in class FileSystem
public FSDataInputStream open(Path f,
int buffersize)
throws IOException
FileSystem
open in class FileSystemf - the file name to openbuffersize - the size of the buffer to be used.
IOException
public boolean exists(Path f)
throws IOException
FileSystem
exists in class FileSystemf - source file
IOException
public FileStatus[] listStatus(Path f)
throws IOException
listStatus in class FileSystemIOException
public FileStatus getFileStatus(Path f)
throws IOException
getFileStatus in class FileSystemIOExceptionpublic Path getWorkingDirectory()
FileSystem
getWorkingDirectory in class FileSystempublic void setWorkingDirectory(Path f)
FileSystem
setWorkingDirectory in class FileSystem
public FSDataOutputStream create(Path f,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
throws IOException
FileSystem
create in class FileSystemf - the file name to openoverwrite - if a file with this name already exists, then if true,
the file will be overwritten, and if false an error will be thrown.bufferSize - the size of the buffer to be used.replication - required block replication for the file.
IOException
public boolean rename(Path src,
Path dst)
throws IOException
FileSystem
rename in class FileSystemIOException
public boolean delete(Path f)
throws IOException
FileSystem
delete in class FileSystemIOException
public boolean mkdirs(Path f)
throws IOException
FileSystem
mkdirs in class FileSystemIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||