Package org.apache.hadoop.fs
Class CommonPathCapabilities
java.lang.Object
org.apache.hadoop.fs.CommonPathCapabilities
Common path capabilities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringStream abort() capability implemented byAbortable.abort().static final StringCapability string to probe for bulk delete: "fs.capability.bulk.delete".static final StringIs this a store where parent directory listings are potentially inconsistent with direct list/getFileStatus calls?static final StringDoes this FS support etags?static final StringAre etags guaranteed to be preserved across rename() operations..static final StringDoes the store supportFileSystem.setAcl(Path, List),FileSystem.getAclStatus(Path)and related methods?static final StringDoes the store supportFileSystem.append(Path)?static final StringDoes the store supportFileSystem.getFileChecksum(Path)?static final StringDoes the store supportFileSystem.concat(Path, Path[])?static final StringProbe for support forBatchListingOperations.static final StringDoes the store supportFileSystem.listCorruptFileBlocks(Path)()}?static final StringDoes the store support multipart uploading?static final StringDoes the store supportFileSystem.createPathHandle(FileStatus, Options.HandleOpt...)and related methods?static final StringDoes the store supportFileSystem.setPermission(Path, FsPermission)and related methods?static final StringDoes this filesystem connector only support filesystem read operations?static final StringDoes the store support snapshots throughFileSystem.createSnapshot(Path)and related methods??static final StringDoes the store supportFileSystem.setStoragePolicy(Path, String)and related methods?static final StringDoes the store support symlinks throughFileSystem.createSymlink(Path, Path, boolean)and related methods?static final StringDoes the store supportFileSystem#truncate(Path, long)?static final StringDoes the store support XAttributes throughFileSystem#.setXAttr()and related methods?static final StringDoes this Filesystem support lease recovery operations such asLeaseRecoverable.recoverLease(Path)andLeaseRecoverable.isFileClosed(Path)}?static final StringCapability string to probe for block locations returned inLocatedFileStatusinstances from calls such asgetBlockLocations()andlistStatus()l to be 'virtual' rather than actual values resolved against a Distributed Filesystem including HDFS: "fs.capability.virtual.block.locations". -
Method Summary
-
Field Details
-
FS_ACLS
Does the store supportFileSystem.setAcl(Path, List),FileSystem.getAclStatus(Path)and related methods? Value: "fs.capability.paths.acls".- See Also:
-
FS_APPEND
Does the store supportFileSystem.append(Path)? Value: "fs.capability.paths.append".- See Also:
-
FS_CHECKSUMS
Does the store supportFileSystem.getFileChecksum(Path)? Value: "fs.capability.paths.checksums".- See Also:
-
FS_CONCAT
Does the store supportFileSystem.concat(Path, Path[])? Value: "fs.capability.paths.concat".- See Also:
-
FS_LIST_CORRUPT_FILE_BLOCKS
Does the store supportFileSystem.listCorruptFileBlocks(Path)()}? Value: "fs.capability.paths.list-corrupt-file-blocks".- See Also:
-
FS_PATHHANDLES
Does the store supportFileSystem.createPathHandle(FileStatus, Options.HandleOpt...)and related methods? Value: "fs.capability.paths.pathhandles".- See Also:
-
FS_PERMISSIONS
Does the store supportFileSystem.setPermission(Path, FsPermission)and related methods? Value: "fs.capability.paths.permissions".- See Also:
-
FS_READ_ONLY_CONNECTOR
Does this filesystem connector only support filesystem read operations? For example, theHttpFileSystemis always read-only. This is different from "is the specific instance and path read only?", which must be determined by checking permissions (where supported), or attempting write operations under a path. Value: "fs.capability.paths.read-only-connector".- See Also:
-
FS_SNAPSHOTS
Does the store support snapshots throughFileSystem.createSnapshot(Path)and related methods?? Value: "fs.capability.paths.snapshots".- See Also:
-
FS_STORAGEPOLICY
Does the store supportFileSystem.setStoragePolicy(Path, String)and related methods? Value: "fs.capability.paths.storagepolicy".- See Also:
-
FS_SYMLINKS
Does the store support symlinks throughFileSystem.createSymlink(Path, Path, boolean)and related methods? Value: "fs.capability.paths.symlinks".- See Also:
-
FS_TRUNCATE
Does the store supportFileSystem#truncate(Path, long)? Value: "fs.capability.paths.truncate".- See Also:
-
FS_XATTRS
Does the store support XAttributes throughFileSystem#.setXAttr()and related methods? Value: "fs.capability.paths.xattrs".- See Also:
-
FS_EXPERIMENTAL_BATCH_LISTING
Probe for support forBatchListingOperations.- See Also:
-
FS_MULTIPART_UPLOADER
Does the store support multipart uploading? Value: "fs.capability.multipart.uploader".- See Also:
-
ABORTABLE_STREAM
Stream abort() capability implemented byAbortable.abort(). Value: "fs.capability.outputstream.abortable".- See Also:
-
ETAGS_AVAILABLE
Does this FS support etags? That is: will FileStatus entries from listing/getFileStatus probes support EtagSource and return real values.- See Also:
-
ETAGS_PRESERVED_IN_RENAME
Are etags guaranteed to be preserved across rename() operations.. FileSystems MUST NOT declare support for this feature unless this holds.- See Also:
-
LEASE_RECOVERABLE
Does this Filesystem support lease recovery operations such asLeaseRecoverable.recoverLease(Path)andLeaseRecoverable.isFileClosed(Path)}? Value: "fs.capability.lease.recoverable".- See Also:
-
DIRECTORY_LISTING_INCONSISTENT
Is this a store where parent directory listings are potentially inconsistent with direct list/getFileStatus calls? This can happen with Amazon S3 Express One Zone Storage when there are pending uploads under a path. Application code can use this flag to decide whether or not to treat FileNotFoundExceptions on treewalk as errors or something to downgrade. Value: "fs.capability.directory.listing.inconsistent".- See Also:
-
BULK_DELETE
Capability string to probe for bulk delete: "fs.capability.bulk.delete".- See Also:
-
VIRTUAL_BLOCK_LOCATIONS
Capability string to probe for block locations returned inLocatedFileStatusinstances from calls such asgetBlockLocations()andlistStatus()l to be 'virtual' rather than actual values resolved against a Distributed Filesystem including HDFS: "fs.capability.virtual.block.locations".Key implications from this path capability being true:
- Work can be scheduled anywhere
- Creation of the location list is a low cost-client side operation
LocatedFileStatus.- See Also:
-