@InterfaceAudience.Public @InterfaceStability.Evolving public class AzureBlobFileSystemStore extends Object
| Constructor and Description |
|---|
AzureBlobFileSystemStore(URI uri,
boolean isSecureScheme,
Configuration configuration) |
public AzureBlobFileSystemStore(URI uri, boolean isSecureScheme, Configuration configuration) throws IOException
IOExceptionpublic String getUser()
public String getPrimaryGroup()
public boolean getIsNamespaceEnabled()
throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic org.apache.hadoop.fs.azurebfs.AbfsConfiguration getAbfsConfiguration()
public Hashtable<String,String> getFilesystemProperties() throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void setFilesystemProperties(Hashtable<String,String> properties) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic Hashtable<String,String> getPathStatus(Path path) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void setPathProperties(Path path, Hashtable<String,String> properties) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void createFilesystem()
throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void deleteFilesystem()
throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic OutputStream createFile(Path path, boolean overwrite, FsPermission permission, FsPermission umask) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void createDirectory(Path path, FsPermission permission, FsPermission umask) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic org.apache.hadoop.fs.azurebfs.services.AbfsInputStream openFileForRead(Path path, org.apache.hadoop.fs.FileSystem.Statistics statistics) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic OutputStream openFileForWrite(Path path, boolean overwrite) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void rename(Path source, Path destination) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void delete(Path path, boolean recursive) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic FileStatus getFileStatus(Path path) throws IOException
IOExceptionpublic FileStatus[] listStatus(Path path) throws IOException
path - The list path.IOException@InterfaceStability.Unstable public FileStatus[] listStatus(Path path, String startFrom) throws IOException
path - Path the list path.startFrom - the entry name that list results should start with.
For example, if folder "/folder" contains four files: "afile", "bfile", "hfile", "ifile".
Then listStatus(Path("/folder"), "hfile") will return "/folder/hfile" and "folder/ifile"
Notice that if startFrom is a non-existent entry name, then the list response contains
all entries after this non-existent entry in lexical order:
listStatus(Path("/folder"), "cfile") will return "/folder/hfile" and "/folder/ifile".IOExceptionpublic void setOwner(Path path, String owner, String group) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void setPermission(Path path, FsPermission permission) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void modifyAclEntries(Path path, List<AclEntry> aclSpec) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void removeAclEntries(Path path, List<AclEntry> aclSpec) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void removeDefaultAcl(Path path) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void removeAcl(Path path) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic void setAcl(Path path, List<AclEntry> aclSpec) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic AclStatus getAclStatus(Path path) throws IOException
IOExceptionpublic void access(Path path, FsAction mode) throws AzureBlobFileSystemException
AzureBlobFileSystemExceptionpublic boolean isAtomicRenameKey(String key)
Copyright © 2022 Apache Software Foundation. All rights reserved.