@ThreadSafe public class WasbUnderFileSystem extends HdfsUnderFileSystem
UnderFileSystem
uses the Microsoft Azure Blob Storage.UnderFileSystem.Factory, UnderFileSystem.SpaceType
Modifier and Type | Field and Description |
---|---|
static String |
SCHEME
Constant for the wasb URI scheme.
|
mUfsConf, mUri
Constructor and Description |
---|
WasbUnderFileSystem(AlluxioURI ufsUri,
UnderFileSystemConfiguration conf,
org.apache.hadoop.conf.Configuration wasbConf)
Constructs a new Wasb
UnderFileSystem . |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.conf.Configuration |
createConfiguration(UnderFileSystemConfiguration conf)
Prepares the configuration for this Wasb as an HDFS configuration.
|
static WasbUnderFileSystem |
createInstance(AlluxioURI uri,
UnderFileSystemConfiguration conf)
Factory method to construct a new Wasb
UnderFileSystem . |
long |
getBlockSizeByte(String path)
Gets the block size of a file in under file system, in bytes.
|
List<String> |
getFileLocations(String path)
Gets the list of locations of the indicated path.
|
List<String> |
getFileLocations(String path,
FileLocationOptions options)
Gets the list of locations of the indicated path given options.
|
String |
getUnderFSType()
Returns the name of the under filesystem implementation.
|
cleanup, close, connectFromMaster, connectFromWorker, create, createDirect, deleteDirectory, deleteFile, exists, getAclPair, getActiveSyncInfo, getDirectoryStatus, getFileStatus, getSpace, getStatus, isDirectory, isFile, isSeekable, listStatus, mkdirs, open, renameDirectory, renameFile, setAclEntries, setMode, setOwner, startActiveSyncPolling, startSync, stopActiveSyncPolling, stopSync, supportsActiveSync, supportsFlush
createNonexistingFile, createNonexistingFile, deleteExistingDirectory, deleteExistingDirectory, deleteExistingFile, getExistingDirectoryStatus, getExistingFileStatus, getExistingStatus, isExistingDirectory, openExistingFile, openExistingFile, renameRenamableDirectory, renameRenamableFile
create, deleteDirectory, getFingerprint, getOperationMode, getPhysicalStores, isObjectStorage, listStatus, mkdirs, open, resolveUri, validatePath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, createNonexistingFile, createNonexistingFile, deleteDirectory, deleteExistingDirectory, deleteExistingDirectory, deleteExistingFile, getExistingDirectoryStatus, getExistingFileStatus, getExistingStatus, getFingerprint, getOperationMode, getPhysicalStores, isExistingDirectory, isObjectStorage, listStatus, mkdirs, open, openExistingFile, openExistingFile, renameRenamableDirectory, renameRenamableFile, resolveUri
public static final String SCHEME
public WasbUnderFileSystem(AlluxioURI ufsUri, UnderFileSystemConfiguration conf, org.apache.hadoop.conf.Configuration wasbConf)
UnderFileSystem
.ufsUri
- the AlluxioURI
for this UFSconf
- the configuration for this UFSwasbConf
- the configuration for this Wasb UFSpublic static org.apache.hadoop.conf.Configuration createConfiguration(UnderFileSystemConfiguration conf)
conf
- the configuration for this UFSpublic static WasbUnderFileSystem createInstance(AlluxioURI uri, UnderFileSystemConfiguration conf)
UnderFileSystem
.uri
- the AlluxioURI
for this UFSconf
- the configuration for this UFSUnderFileSystem
instancepublic String getUnderFSType()
UnderFileSystem
getUnderFSType
in interface UnderFileSystem
getUnderFSType
in class HdfsUnderFileSystem
public long getBlockSizeByte(String path) throws IOException
UnderFileSystem
getBlockSizeByte
in interface UnderFileSystem
getBlockSizeByte
in class HdfsUnderFileSystem
path
- the file nameIOException
public List<String> getFileLocations(String path) throws IOException
UnderFileSystem
getFileLocations
in interface UnderFileSystem
getFileLocations
in class HdfsUnderFileSystem
path
- the file nameIOException
public List<String> getFileLocations(String path, FileLocationOptions options) throws IOException
UnderFileSystem
getFileLocations
in interface UnderFileSystem
getFileLocations
in class HdfsUnderFileSystem
path
- the file nameoptions
- method optionsIOException
Copyright © 2023. All Rights Reserved.