@ThreadSafe public class S3UnderFileSystem extends UnderFileSystem
UnderFileSystem implementation based on the jets3t library.UnderFileSystem.SpaceType, UnderFileSystem.UnderFSTypemConfiguration| Constructor and Description |
|---|
S3UnderFileSystem(String bucketName,
Configuration conf)
Constructs a new instance of
S3UnderFileSystem. |
get, get, isHadoopUnderFS, listRecursive, parse, providesStoragepublic S3UnderFileSystem(String bucketName, Configuration conf) throws org.jets3t.service.ServiceException
S3UnderFileSystem.bucketName - the name of the bucketconf - the configuration for Alluxioorg.jets3t.service.ServiceException - when a connection to S3 could not be createdpublic UnderFileSystem.UnderFSType getUnderFSType()
getUnderFSType in class UnderFileSystempublic void close()
throws IOException
close in class UnderFileSystemIOExceptionpublic void connectFromMaster(Configuration conf, String hostname)
connectFromMaster in class UnderFileSystempublic void connectFromWorker(Configuration conf, String hostname)
connectFromWorker in class UnderFileSystempublic OutputStream create(String path) throws IOException
create in class UnderFileSystemIOExceptionpublic OutputStream create(String path, int blockSizeByte) throws IOException
create in class UnderFileSystemIOExceptionpublic OutputStream create(String path, short replication, int blockSizeByte) throws IOException
create in class UnderFileSystemIOExceptionpublic boolean delete(String path, boolean recursive) throws IOException
delete in class UnderFileSystemIOExceptionpublic boolean exists(String path) throws IOException
exists in class UnderFileSystemIOExceptionpublic long getBlockSizeByte(String path) throws IOException
getBlockSizeByte in class UnderFileSystempath - the file nameIOException - this implementation will not throw this exception, but subclasses maypublic Object getConf()
getConf in class UnderFileSystempublic List<String> getFileLocations(String path) throws IOException
getFileLocations in class UnderFileSystemIOExceptionpublic List<String> getFileLocations(String path, long offset) throws IOException
getFileLocations in class UnderFileSystemIOExceptionpublic long getFileSize(String path) throws IOException
getFileSize in class UnderFileSystemIOExceptionpublic long getModificationTimeMs(String path) throws IOException
getModificationTimeMs in class UnderFileSystemIOExceptionpublic long getSpace(String path, UnderFileSystem.SpaceType type) throws IOException
getSpace in class UnderFileSystemIOExceptionpublic boolean isFile(String path) throws IOException
isFile in class UnderFileSystemIOExceptionpublic String[] list(String path) throws IOException
list in class UnderFileSystemIOExceptionpublic boolean mkdirs(String path, boolean createParent) throws IOException
mkdirs in class UnderFileSystemIOExceptionpublic InputStream open(String path) throws IOException
open in class UnderFileSystemIOExceptionpublic boolean rename(String src, String dst) throws IOException
rename in class UnderFileSystemIOExceptionpublic void setConf(Object conf)
setConf in class UnderFileSystempublic void setPermission(String path, String posixPerm) throws IOException
setPermission in class UnderFileSystemIOExceptionCopyright © 2016. All Rights Reserved.