Class Capability
java.lang.Object
org.apache.opendal.Capability
Capability defines the supported operations and their constraints for a storage Operator.
Size limit fields (long) are set to -1L when the operator does not define a limit.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanIndicates if the operator supports composing complete source objects.final booleanIndicates if Cache-Control can be specified during composition.final booleanIndicates if Content-Disposition can be specified during composition.final booleanIndicates if Content-Encoding can be specified during composition.final booleanIndicates if Content-Type can be specified during composition.final booleanIndicates if composition supports a destination ETag match condition.final booleanIndicates if composition supports a destination ETag non-match condition.final booleanIndicates if composition can require a missing destination.final booleanIndicates if composition supports a destination version match condition.final booleanIndicates if composition supports a destination version non-match condition.final booleanIndicates if composition supports a source ETag match condition.final booleanIndicates if composition can select a specific source version.final booleanIndicates if custom user metadata can be attached during composition.final booleanIndicates if copy operations are supported.final booleanIndicates if copy operations can be split into multiple server-side tasks.final longMaximum size supported for segmented copy tasks.final longMinimum size required for segmented copy tasks.final booleanIndicates if copy operations can replace the destination's Content-Language.final booleanIndicates if copy operations can replace the destination's Content-Type.final booleanIndicates if conditional copy operations with if-match are supported.final booleanIndicates if conditional copy operations with if-none-match are supported.final booleanIndicates if conditional copy operations with if-not-exists are supported.final booleanIndicates if conditional copy operations using version match are supported.final booleanIndicates if conditional copy operations using version non-match are supported.final booleanIndicates if copy operations from a specific source version are supported.final booleanIndicates if copy operations can replace the destination's user metadata.final booleanIndicates if directory creation is supported.final booleanIndicates if delete operations are supported.final longMaximum size supported for single delete operations.final booleanIndicates if conditional delete operations using If-Match are supported.final booleanIndicates if conditional delete operations using If-None-Match are supported.final booleanIndicates if conditional delete operations using version match are supported.final booleanIndicates if conditional delete operations using version non-match are supported.final booleanIndicates if recursive delete operations are supported.final booleanIndicates if versions delete operations are supported.final booleanIndicates if list operations are supported.final booleanIndicates if listing with deleted files included is supported.final booleanIndicates if listing with a glob pattern is supported by this service stack.final booleanIndicates if list operations support result limiting.final booleanIndicates if recursive listing is supported.final booleanIndicates if list operations support continuation from a specific point.final booleanIndicates if listing with versions included is supported.final booleanIndicates if presigned URL generation is supported.final booleanIndicates if presigned URLs for delete operations are supported.final booleanIndicates if presigned URLs for read operations are supported.final booleanIndicates if presigned URLs for stat operations are supported.final booleanIndicates if presigned URLs for write operations are supported.final booleanIndicates if the operator supports read operations.final booleanIndicates if the operator supports requesting stored full-file checksum metadata.final booleanIndicates if conditional read operations using If-Match are supported.final booleanIndicates if conditional read operations using If-Modified-Since are supported.final booleanIndicates if conditional read operations using If-None-Match are supported.final booleanIndicates if conditional read operations using If-Unmodified-Since are supported.final booleanIndicates if conditional read operations using version match are supported.final booleanIndicates if conditional read operations using version non-match are supported.final booleanIndicates if Cache-Control header override is supported during read operations.final booleanIndicates if Content-Disposition header override is supported during read operations.final booleanIndicates if Content-Type header override is supported during read operations.final booleanIndicates if suffix read operations are supported.final booleanIndicates if versions read operations are supported.final booleanIndicates if rename operations are supported.final booleanIndicates if conditional rename operations with if-not-exists are supported.final booleanIndicates if restore operations are supported.final booleanIndicates if conditional restore operations using if-not-exists are supported.final booleanIndicates if restoring a specific version is supported.final booleanIndicate if the operator supports shared access.final booleanIndicates if the operator supports metadata retrieval operations.final booleanIndicates if conditional stat operations using If-Match are supported.final booleanIndicates if conditional stat operations using If-Modified-Since are supported.final booleanIndicates if conditional stat operations using If-None-Match are supported.final booleanIndicates if conditional stat operations using If-Unmodified-Since are supported.final booleanIndicates if conditional stat operations using version match are supported.final booleanIndicates if conditional stat operations using version non-match are supported.final booleanIndicates if Cache-Control header override is supported during stat operations.final booleanIndicates if Content-Disposition header override is supported during stat operations.final booleanIndicates if Content-Type header override is supported during stat operations.final booleanIndicates if versions stat operations are supported.final booleanIndicates if the operator supports write operations.final booleanIndicates if append operations are supported.final booleanIndicates if an open, non-append writer can copy eligible byte ranges from existing objects without transferring the copied bytes through the client.final booleanIndicates if writing empty content is supported.final booleanIndicates if multiple write operations can be performed on the same object.final longMaximum size supported for multipart uploads.final longMinimum size required for multipart uploads (except for the last part).final longMaximum total size supported for write operations.final booleanIndicates if Cache-Control can be specified during write operations.final booleanIndicates if non-append writes support native verification with a checksum algorithm selected by the service.final booleanIndicates if Content-Disposition can be specified during write operations.final booleanIndicates if Content-Encoding can be specified during write operations.final booleanIndicates if a write can store Content-Language and a subsequent stat can retrieve it.final booleanIndicates if Content-Type can be specified during write operations.final booleanIndicates if writes can set a lifetime for the new file.final booleanIndicates if conditional write operations using If-Match are supported.final booleanIndicates if conditional write operations using If-None-Match are supported.final booleanIndicates if write operations can be conditional on object non-existence.final booleanIndicates if conditional write operations using version match are supported.final booleanIndicates if conditional write operations using version non-match are supported.final booleanIndicates if custom user metadata can be attached during write operations. -
Constructor Summary
ConstructorsConstructorDescriptionCapability(boolean stat, boolean statWithIfMatch, boolean statWithIfNoneMatch, boolean statWithIfVersionMatch, boolean statWithIfVersionNotMatch, boolean statWithIfModifiedSince, boolean statWithIfUnmodifiedSince, boolean statWithVersion, boolean read, boolean readWithIfMatch, boolean readWithIfNoneMatch, boolean readWithOverrideCacheControl, boolean readWithOverrideContentDisposition, boolean readWithOverrideContentType, boolean write, boolean writeCanMulti, boolean writeCanAppend, boolean writeWithContentType, boolean writeWithContentDisposition, boolean writeWithCacheControl, boolean writeWithIfMatch, boolean writeWithIfNoneMatch, boolean writeWithIfNotExists, boolean writeWithUserMetadata, long writeMultiMaxSize, long writeMultiMinSize, boolean createDir, boolean delete, boolean copy, boolean rename, boolean list, boolean listWithLimit, boolean listWithStartAfter, boolean listWithRecursive, boolean listWithVersions, boolean listWithDeleted, boolean presign, boolean presignRead, boolean presignStat, boolean presignWrite, boolean shared) Deprecated.Capability(boolean stat, boolean statWithIfMatch, boolean statWithIfNoneMatch, boolean statWithIfVersionMatch, boolean statWithIfVersionNotMatch, boolean statWithIfModifiedSince, boolean statWithIfUnmodifiedSince, boolean statWithVersion, boolean read, boolean readWithIfMatch, boolean readWithIfNoneMatch, boolean readWithOverrideCacheControl, boolean readWithOverrideContentDisposition, boolean readWithOverrideContentType, boolean write, boolean writeCanMulti, boolean writeCanAppend, boolean writeWithContentType, boolean writeWithContentDisposition, boolean writeWithCacheControl, boolean writeWithIfMatch, boolean writeWithIfNoneMatch, boolean writeWithIfNotExists, boolean writeWithUserMetadata, long writeMultiMaxSize, long writeMultiMinSize, boolean createDir, boolean delete, boolean copy, boolean rename, boolean list, boolean listWithLimit, boolean listWithStartAfter, boolean listWithRecursive, boolean listWithVersions, boolean listWithDeleted, boolean presign, boolean presignRead, boolean presignStat, boolean presignWrite, boolean shared, boolean readWithVersion, boolean readWithIfVersionMatch, boolean readWithIfVersionNotMatch, boolean readWithIfModifiedSince, boolean readWithIfUnmodifiedSince) Deprecated.UseCapability.builder()instead. -
Method Summary
-
Field Details
-
stat
public final boolean statIndicates if the operator supports metadata retrieval operations. -
statWithIfMatch
public final boolean statWithIfMatchIndicates if conditional stat operations using If-Match are supported. -
statWithIfNoneMatch
public final boolean statWithIfNoneMatchIndicates if conditional stat operations using If-None-Match are supported. -
statWithIfVersionMatch
public final boolean statWithIfVersionMatchIndicates if conditional stat operations using version match are supported. -
statWithIfVersionNotMatch
public final boolean statWithIfVersionNotMatchIndicates if conditional stat operations using version non-match are supported. -
statWithIfModifiedSince
public final boolean statWithIfModifiedSinceIndicates if conditional stat operations using If-Modified-Since are supported. -
statWithIfUnmodifiedSince
public final boolean statWithIfUnmodifiedSinceIndicates if conditional stat operations using If-Unmodified-Since are supported. -
statWithOverrideCacheControl
public final boolean statWithOverrideCacheControlIndicates if Cache-Control header override is supported during stat operations. -
statWithOverrideContentDisposition
public final boolean statWithOverrideContentDispositionIndicates if Content-Disposition header override is supported during stat operations. -
statWithOverrideContentType
public final boolean statWithOverrideContentTypeIndicates if Content-Type header override is supported during stat operations. -
statWithVersion
public final boolean statWithVersionIndicates if versions stat operations are supported. -
read
public final boolean readIndicates if the operator supports read operations. -
readWithIfMatch
public final boolean readWithIfMatchIndicates if conditional read operations using If-Match are supported. -
readWithIfNoneMatch
public final boolean readWithIfNoneMatchIndicates if conditional read operations using If-None-Match are supported. -
readWithIfVersionMatch
public final boolean readWithIfVersionMatchIndicates if conditional read operations using version match are supported. -
readWithIfVersionNotMatch
public final boolean readWithIfVersionNotMatchIndicates if conditional read operations using version non-match are supported. -
readWithIfModifiedSince
public final boolean readWithIfModifiedSinceIndicates if conditional read operations using If-Modified-Since are supported. -
readWithIfUnmodifiedSince
public final boolean readWithIfUnmodifiedSinceIndicates if conditional read operations using If-Unmodified-Since are supported. -
readWithOverrideCacheControl
public final boolean readWithOverrideCacheControlIndicates if Cache-Control header override is supported during read operations. -
readWithOverrideContentDisposition
public final boolean readWithOverrideContentDispositionIndicates if Content-Disposition header override is supported during read operations. -
readWithOverrideContentType
public final boolean readWithOverrideContentTypeIndicates if Content-Type header override is supported during read operations. -
readWithVersion
public final boolean readWithVersionIndicates if versions read operations are supported. -
readWithSuffix
public final boolean readWithSuffixIndicates if suffix read operations are supported. -
readWithChecksum
public final boolean readWithChecksumIndicates if the operator supports requesting stored full-file checksum metadata. Stat and read responses may include that metadata when requested. -
write
public final boolean writeIndicates if the operator supports write operations. -
writeCanMulti
public final boolean writeCanMultiIndicates if multiple write operations can be performed on the same object. -
writeCanEmpty
public final boolean writeCanEmptyIndicates if writing empty content is supported. -
writeCanAppend
public final boolean writeCanAppendIndicates if append operations are supported. -
writeCanCopyFrom
public final boolean writeCanCopyFromIndicates if an open, non-append writer can copy eligible byte ranges from existing objects without transferring the copied bytes through the client. Whole-object copy is a separate capability. -
writeWithContentType
public final boolean writeWithContentTypeIndicates if Content-Type can be specified during write operations. -
writeWithContentDisposition
public final boolean writeWithContentDispositionIndicates if Content-Disposition can be specified during write operations. -
writeWithContentEncoding
public final boolean writeWithContentEncodingIndicates if Content-Encoding can be specified during write operations. -
writeWithContentLanguage
public final boolean writeWithContentLanguageIndicates if a write can store Content-Language and a subsequent stat can retrieve it. -
writeWithCacheControl
public final boolean writeWithCacheControlIndicates if Cache-Control can be specified during write operations. -
writeWithIfMatch
public final boolean writeWithIfMatchIndicates if conditional write operations using If-Match are supported. -
writeWithIfNoneMatch
public final boolean writeWithIfNoneMatchIndicates if conditional write operations using If-None-Match are supported. -
writeWithIfVersionMatch
public final boolean writeWithIfVersionMatchIndicates if conditional write operations using version match are supported. -
writeWithIfVersionNotMatch
public final boolean writeWithIfVersionNotMatchIndicates if conditional write operations using version non-match are supported. -
writeWithIfNotExists
public final boolean writeWithIfNotExistsIndicates if write operations can be conditional on object non-existence. -
writeWithUserMetadata
public final boolean writeWithUserMetadataIndicates if custom user metadata can be attached during write operations. -
writeWithExpires
public final boolean writeWithExpiresIndicates if writes can set a lifetime for the new file. -
writeWithChecksum
public final boolean writeWithChecksumIndicates if non-append writes support native verification with a checksum algorithm selected by the service. Verification may cover only individual upload requests, parts, or blocks. Support for caller-selected algorithms and full-object verification depends on the service and write mode. OpenDAL rejects unsupported explicit checksum requests before performing I/O. -
writeMultiMaxSize
public final long writeMultiMaxSizeMaximum size supported for multipart uploads. For example, AWS S3 supports up to 5GiB per part in multipart uploads. -
writeMultiMinSize
public final long writeMultiMinSizeMinimum size required for multipart uploads (except for the last part). For example, AWS S3 requires at least 5MiB per part. -
writeTotalMaxSize
public final long writeTotalMaxSizeMaximum total size supported for write operations. For example, Cloudflare D1 has a 1MB total size limit. -
createDir
public final boolean createDirIndicates if directory creation is supported. -
delete
public final boolean deleteIndicates if delete operations are supported. -
deleteWithVersion
public final boolean deleteWithVersionIndicates if versions delete operations are supported. -
deleteWithRecursive
public final boolean deleteWithRecursiveIndicates if recursive delete operations are supported. -
deleteWithIfMatch
public final boolean deleteWithIfMatchIndicates if conditional delete operations using If-Match are supported. -
deleteWithIfNoneMatch
public final boolean deleteWithIfNoneMatchIndicates if conditional delete operations using If-None-Match are supported. -
deleteWithIfVersionMatch
public final boolean deleteWithIfVersionMatchIndicates if conditional delete operations using version match are supported. -
deleteWithIfVersionNotMatch
public final boolean deleteWithIfVersionNotMatchIndicates if conditional delete operations using version non-match are supported. -
deleteMaxSize
public final long deleteMaxSizeMaximum size supported for single delete operations. -
copy
public final boolean copyIndicates if copy operations are supported. -
copyWithIfNotExists
public final boolean copyWithIfNotExistsIndicates if conditional copy operations with if-not-exists are supported. -
copyWithIfMatch
public final boolean copyWithIfMatchIndicates if conditional copy operations with if-match are supported. -
copyWithIfNoneMatch
public final boolean copyWithIfNoneMatchIndicates if conditional copy operations with if-none-match are supported. -
copyWithIfVersionMatch
public final boolean copyWithIfVersionMatchIndicates if conditional copy operations using version match are supported. -
copyWithIfVersionNotMatch
public final boolean copyWithIfVersionNotMatchIndicates if conditional copy operations using version non-match are supported. -
copyWithSourceVersion
public final boolean copyWithSourceVersionIndicates if copy operations from a specific source version are supported. -
copyWithUserMetadata
public final boolean copyWithUserMetadataIndicates if copy operations can replace the destination's user metadata. -
copyWithContentType
public final boolean copyWithContentTypeIndicates if copy operations can replace the destination's Content-Type. -
copyWithContentLanguage
public final boolean copyWithContentLanguageIndicates if copy operations can replace the destination's Content-Language. -
copyCanMulti
public final boolean copyCanMultiIndicates if copy operations can be split into multiple server-side tasks. -
copyMultiMaxSize
public final long copyMultiMaxSizeMaximum size supported for segmented copy tasks. -
copyMultiMinSize
public final long copyMultiMinSizeMinimum size required for segmented copy tasks. -
compose
public final boolean composeIndicates if the operator supports composing complete source objects. -
composeWithContentType
public final boolean composeWithContentTypeIndicates if Content-Type can be specified during composition. -
composeWithContentDisposition
public final boolean composeWithContentDispositionIndicates if Content-Disposition can be specified during composition. -
composeWithContentEncoding
public final boolean composeWithContentEncodingIndicates if Content-Encoding can be specified during composition. -
composeWithCacheControl
public final boolean composeWithCacheControlIndicates if Cache-Control can be specified during composition. -
composeWithUserMetadata
public final boolean composeWithUserMetadataIndicates if custom user metadata can be attached during composition. -
composeWithIfMatch
public final boolean composeWithIfMatchIndicates if composition supports a destination ETag match condition. -
composeWithIfNoneMatch
public final boolean composeWithIfNoneMatchIndicates if composition supports a destination ETag non-match condition. -
composeWithIfVersionMatch
public final boolean composeWithIfVersionMatchIndicates if composition supports a destination version match condition. -
composeWithIfVersionNotMatch
public final boolean composeWithIfVersionNotMatchIndicates if composition supports a destination version non-match condition. -
composeWithIfNotExists
public final boolean composeWithIfNotExistsIndicates if composition can require a missing destination. -
composeWithSourceVersion
public final boolean composeWithSourceVersionIndicates if composition can select a specific source version. -
composeWithSourceIfMatch
public final boolean composeWithSourceIfMatchIndicates if composition supports a source ETag match condition. -
restore
public final boolean restoreIndicates if restore operations are supported. -
restoreWithVersion
public final boolean restoreWithVersionIndicates if restoring a specific version is supported. -
restoreWithIfNotExists
public final boolean restoreWithIfNotExistsIndicates if conditional restore operations using if-not-exists are supported. -
rename
public final boolean renameIndicates if rename operations are supported. -
renameWithIfNotExists
public final boolean renameWithIfNotExistsIndicates if conditional rename operations with if-not-exists are supported. -
list
public final boolean listIndicates if list operations are supported. -
listWithLimit
public final boolean listWithLimitIndicates if list operations support result limiting. -
listWithStartAfter
public final boolean listWithStartAfterIndicates if list operations support continuation from a specific point. -
listWithRecursive
public final boolean listWithRecursiveIndicates if recursive listing is supported. -
listWithVersions
public final boolean listWithVersionsIndicates if listing with versions included is supported. -
listWithDeleted
public final boolean listWithDeletedIndicates if listing with deleted files included is supported. -
listWithGlob
public final boolean listWithGlobIndicates if listing with a glob pattern is supported by this service stack. -
presign
public final boolean presignIndicates if presigned URL generation is supported. -
presignRead
public final boolean presignReadIndicates if presigned URLs for read operations are supported. -
presignStat
public final boolean presignStatIndicates if presigned URLs for stat operations are supported. -
presignWrite
public final boolean presignWriteIndicates if presigned URLs for write operations are supported. -
presignDelete
public final boolean presignDeleteIndicates if presigned URLs for delete operations are supported.
-
-
Constructor Details
-
Capability
@Deprecated public Capability(boolean stat, boolean statWithIfMatch, boolean statWithIfNoneMatch, boolean statWithIfVersionMatch, boolean statWithIfVersionNotMatch, boolean statWithIfModifiedSince, boolean statWithIfUnmodifiedSince, boolean statWithVersion, boolean read, boolean readWithIfMatch, boolean readWithIfNoneMatch, boolean readWithOverrideCacheControl, boolean readWithOverrideContentDisposition, boolean readWithOverrideContentType, boolean write, boolean writeCanMulti, boolean writeCanAppend, boolean writeWithContentType, boolean writeWithContentDisposition, boolean writeWithCacheControl, boolean writeWithIfMatch, boolean writeWithIfNoneMatch, boolean writeWithIfNotExists, boolean writeWithUserMetadata, long writeMultiMaxSize, long writeMultiMinSize, boolean createDir, boolean delete, boolean copy, boolean rename, boolean list, boolean listWithLimit, boolean listWithStartAfter, boolean listWithRecursive, boolean listWithVersions, boolean listWithDeleted, boolean presign, boolean presignRead, boolean presignStat, boolean presignWrite, boolean shared) Deprecated.UseCapability.builder()instead.Creates capabilities with the read version and timestamp flags set to false. -
Capability
@Deprecated public Capability(boolean stat, boolean statWithIfMatch, boolean statWithIfNoneMatch, boolean statWithIfVersionMatch, boolean statWithIfVersionNotMatch, boolean statWithIfModifiedSince, boolean statWithIfUnmodifiedSince, boolean statWithVersion, boolean read, boolean readWithIfMatch, boolean readWithIfNoneMatch, boolean readWithOverrideCacheControl, boolean readWithOverrideContentDisposition, boolean readWithOverrideContentType, boolean write, boolean writeCanMulti, boolean writeCanAppend, boolean writeWithContentType, boolean writeWithContentDisposition, boolean writeWithCacheControl, boolean writeWithIfMatch, boolean writeWithIfNoneMatch, boolean writeWithIfNotExists, boolean writeWithUserMetadata, long writeMultiMaxSize, long writeMultiMinSize, boolean createDir, boolean delete, boolean copy, boolean rename, boolean list, boolean listWithLimit, boolean listWithStartAfter, boolean listWithRecursive, boolean listWithVersions, boolean listWithDeleted, boolean presign, boolean presignRead, boolean presignStat, boolean presignWrite, boolean shared, boolean readWithVersion, boolean readWithIfVersionMatch, boolean readWithIfVersionNotMatch, boolean readWithIfModifiedSince, boolean readWithIfUnmodifiedSince) Deprecated.UseCapability.builder()instead.Creates capabilities with the legacy 46-parameter signature.
-
Capability.builder()instead.