|
||||||||||
| 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.fs.s3.S3FileSystem
public class S3FileSystem
A FileSystem backed by Amazon S3.
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.fs.FileSystem |
|---|
LOG |
| Constructor Summary | |
|---|---|
S3FileSystem()
|
|
S3FileSystem(FileSystemStore store)
|
|
| Method Summary | |
|---|---|
FSDataOutputStream |
create(Path file,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
Opens an FSDataOutputStream at the indicated Path with write-progress reporting. |
boolean |
delete(Path path)
Delete a file |
boolean |
exists(Path path)
Check if exists. |
FileStatus |
getFileStatus(Path f)
FileStatus for S3 file systems. |
String |
getName()
|
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 uri,
Configuration conf)
Called after a new FileSystem instance is constructed. |
boolean |
isFile(Path path)
True iff the named path is a regular file. |
FileStatus[] |
listStatus(Path f)
|
boolean |
mkdirs(Path path)
Make the given file and all non-existent parents into directories. |
FSDataInputStream |
open(Path path,
int bufferSize)
Opens an FSDataInputStream at the indicated Path. |
boolean |
rename(Path src,
Path dst)
Renames Path src to Path dst. |
void |
setWorkingDirectory(Path dir)
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, getNamed, getReplication, getUsed, globPaths, globPaths, isDirectory, 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 |
| Constructor Detail |
|---|
public S3FileSystem()
public S3FileSystem(FileSystemStore store)
| Method Detail |
|---|
public URI getUri()
FileSystem
getUri in class FileSystem
public void initialize(URI uri,
Configuration conf)
throws IOException
FileSystem
initialize in class FileSystemuri - a uri whose authority section names the host, port, etc.
for this FileSystemconf - the configuration
IOExceptionpublic String getName()
getName in class FileSystempublic Path getWorkingDirectory()
FileSystem
getWorkingDirectory in class FileSystempublic void setWorkingDirectory(Path dir)
FileSystem
setWorkingDirectory in class FileSystem
public boolean exists(Path path)
throws IOException
FileSystem
exists in class FileSystempath - source file
IOException
public boolean mkdirs(Path path)
throws IOException
FileSystem
mkdirs in class FileSystemIOException
public boolean isFile(Path path)
throws IOException
FileSystem
isFile in class FileSystemIOException
public FileStatus[] listStatus(Path f)
throws IOException
listStatus in class FileSystemIOException
public FSDataOutputStream create(Path file,
boolean overwrite,
int bufferSize,
short replication,
long blockSize,
Progressable progress)
throws IOException
FileSystem
create in class FileSystemfile - 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 FSDataInputStream open(Path path,
int bufferSize)
throws IOException
FileSystem
open in class FileSystempath - the file name to openbufferSize - the size of the buffer to be used.
IOException
public boolean rename(Path src,
Path dst)
throws IOException
FileSystem
rename in class FileSystemIOException
public boolean delete(Path path)
throws IOException
FileSystem
delete in class FileSystemIOException
public FileStatus getFileStatus(Path f)
throws IOException
getFileStatus in class FileSystemIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||