Package alluxio.underfs.wasb
Class WasbUnderFileSystem
- java.lang.Object
-
- alluxio.underfs.BaseUnderFileSystem
-
- alluxio.underfs.ConsistentUnderFileSystem
-
- alluxio.underfs.hdfs.HdfsUnderFileSystem
-
- alluxio.underfs.wasb.WasbUnderFileSystem
-
- All Implemented Interfaces:
alluxio.underfs.AtomicFileOutputStreamCallback,alluxio.underfs.UnderFileSystem,java.io.Closeable,java.lang.AutoCloseable
@ThreadSafe public class WasbUnderFileSystem extends alluxio.underfs.hdfs.HdfsUnderFileSystemAnUnderFileSystemuses the Microsoft Azure Blob Storage.
-
-
Constructor Summary
Constructors Constructor Description WasbUnderFileSystem(alluxio.AlluxioURI ufsUri, alluxio.underfs.UnderFileSystemConfiguration conf, org.apache.hadoop.conf.Configuration wasbConf)Constructs a new WasbUnderFileSystem.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.hadoop.conf.ConfigurationcreateConfiguration(alluxio.underfs.UnderFileSystemConfiguration conf, java.lang.Boolean isSecure)Prepares the configuration for this Wasb as an HDFS configuration.static WasbUnderFileSystemcreateInstance(alluxio.AlluxioURI uri, alluxio.underfs.UnderFileSystemConfiguration conf)Factory method to construct a new WasbUnderFileSystem.longgetBlockSizeByte(java.lang.String path)java.util.List<java.lang.String>getFileLocations(java.lang.String path)java.util.List<java.lang.String>getFileLocations(java.lang.String path, alluxio.underfs.options.FileLocationOptions options)alluxio.underfs.UfsStatusgetStatus(java.lang.String path, alluxio.underfs.options.GetStatusOptions options)java.lang.StringgetUnderFSType()-
Methods inherited from class alluxio.underfs.hdfs.HdfsUnderFileSystem
cleanup, close, connectFromMaster, connectFromWorker, create, createConfiguration, createDirect, deleteDirectory, deleteFile, exists, getAclPair, getActiveSyncInfo, getDirectoryStatus, getFileStatus, getSpace, isDirectory, isFile, isSeekable, listStatus, mkdirs, open, openPositionRead, renameDirectory, renameFile, setAclEntries, setMode, setOwner, startActiveSyncPolling, startSync, stopActiveSyncPolling, stopSync, supportsActiveSync, supportsFlush
-
Methods inherited from class alluxio.underfs.ConsistentUnderFileSystem
createNonexistingFile, createNonexistingFile, deleteExistingDirectory, deleteExistingDirectory, deleteExistingFile, getExistingDirectoryStatus, getExistingFileStatus, getExistingStatus, isExistingDirectory, openExistingFile, openExistingFile, renameRenamableDirectory, renameRenamableFile
-
Methods inherited from class alluxio.underfs.BaseUnderFileSystem
create, deleteDirectory, getConfiguration, getFingerprint, getOperationMode, getParsedFingerprint, getParsedFingerprint, getPhysicalStores, isObjectStorage, listStatus, mkdirs, open, resolveUri, validatePath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface alluxio.underfs.UnderFileSystem
create, createNonexistingFile, createNonexistingFile, deleteDirectory, deleteExistingDirectory, deleteExistingDirectory, deleteExistingFile, getConfiguration, getExistingDirectoryStatus, getExistingFileStatus, getExistingStatus, getFileStatus, getFingerprint, getOperationMode, getParsedFingerprint, getParsedFingerprint, getPhysicalStores, getStatus, isExistingDirectory, isObjectStorage, listStatus, listStatuses, mkdirs, open, openExistingFile, openExistingFile, renameRenamableDirectory, renameRenamableFile, resolveUri
-
-
-
-
Constructor Detail
-
WasbUnderFileSystem
public WasbUnderFileSystem(alluxio.AlluxioURI ufsUri, alluxio.underfs.UnderFileSystemConfiguration conf, org.apache.hadoop.conf.Configuration wasbConf)Constructs a new WasbUnderFileSystem.- Parameters:
ufsUri- theAlluxioURIfor this UFSconf- the configuration for this UFSwasbConf- the configuration for this Wasb UFS
-
-
Method Detail
-
createConfiguration
public static org.apache.hadoop.conf.Configuration createConfiguration(alluxio.underfs.UnderFileSystemConfiguration conf, java.lang.Boolean isSecure)Prepares the configuration for this Wasb as an HDFS configuration.- Parameters:
conf- the configuration for this UFSisSecure- whether blob storage is using https- Returns:
- the created configuration
-
createInstance
public static WasbUnderFileSystem createInstance(alluxio.AlluxioURI uri, alluxio.underfs.UnderFileSystemConfiguration conf)
Factory method to construct a new WasbUnderFileSystem.- Parameters:
uri- theAlluxioURIfor this UFSconf- the configuration for this UFS- Returns:
- a new Wasb
UnderFileSysteminstance
-
getUnderFSType
public java.lang.String getUnderFSType()
- Specified by:
getUnderFSTypein interfacealluxio.underfs.UnderFileSystem- Overrides:
getUnderFSTypein classalluxio.underfs.hdfs.HdfsUnderFileSystem
-
getBlockSizeByte
public long getBlockSizeByte(java.lang.String path) throws java.io.IOException- Specified by:
getBlockSizeBytein interfacealluxio.underfs.UnderFileSystem- Overrides:
getBlockSizeBytein classalluxio.underfs.hdfs.HdfsUnderFileSystem- Throws:
java.io.IOException
-
getStatus
public alluxio.underfs.UfsStatus getStatus(java.lang.String path, alluxio.underfs.options.GetStatusOptions options) throws java.io.IOException- Specified by:
getStatusin interfacealluxio.underfs.UnderFileSystem- Overrides:
getStatusin classalluxio.underfs.hdfs.HdfsUnderFileSystem- Throws:
java.io.IOException
-
getFileLocations
public java.util.List<java.lang.String> getFileLocations(java.lang.String path) throws java.io.IOException- Specified by:
getFileLocationsin interfacealluxio.underfs.UnderFileSystem- Overrides:
getFileLocationsin classalluxio.underfs.hdfs.HdfsUnderFileSystem- Throws:
java.io.IOException
-
getFileLocations
public java.util.List<java.lang.String> getFileLocations(java.lang.String path, alluxio.underfs.options.FileLocationOptions options) throws java.io.IOException- Specified by:
getFileLocationsin interfacealluxio.underfs.UnderFileSystem- Overrides:
getFileLocationsin classalluxio.underfs.hdfs.HdfsUnderFileSystem- Throws:
java.io.IOException
-
-