Class Capability

java.lang.Object
org.apache.opendal.Capability

public class Capability extends Object
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
    Modifier and Type
    Class
    Description
    static class 
    Builder for Capability.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
    Indicates if the operator supports composing complete source objects.
    final boolean
    Indicates if Cache-Control can be specified during composition.
    final boolean
    Indicates if Content-Disposition can be specified during composition.
    final boolean
    Indicates if Content-Encoding can be specified during composition.
    final boolean
    Indicates if Content-Type can be specified during composition.
    final boolean
    Indicates if composition supports a destination ETag match condition.
    final boolean
    Indicates if composition supports a destination ETag non-match condition.
    final boolean
    Indicates if composition can require a missing destination.
    final boolean
    Indicates if composition supports a destination version match condition.
    final boolean
    Indicates if composition supports a destination version non-match condition.
    final boolean
    Indicates if composition supports a source ETag match condition.
    final boolean
    Indicates if composition can select a specific source version.
    final boolean
    Indicates if custom user metadata can be attached during composition.
    final boolean
    Indicates if copy operations are supported.
    final boolean
    Indicates if copy operations can be split into multiple server-side tasks.
    final long
    Maximum size supported for segmented copy tasks.
    final long
    Minimum size required for segmented copy tasks.
    final boolean
    Indicates if copy operations can replace the destination's Content-Language.
    final boolean
    Indicates if copy operations can replace the destination's Content-Type.
    final boolean
    Indicates if conditional copy operations with if-match are supported.
    final boolean
    Indicates if conditional copy operations with if-none-match are supported.
    final boolean
    Indicates if conditional copy operations with if-not-exists are supported.
    final boolean
    Indicates if conditional copy operations using version match are supported.
    final boolean
    Indicates if conditional copy operations using version non-match are supported.
    final boolean
    Indicates if copy operations from a specific source version are supported.
    final boolean
    Indicates if copy operations can replace the destination's user metadata.
    final boolean
    Indicates if directory creation is supported.
    final boolean
    Indicates if delete operations are supported.
    final long
    Maximum size supported for single delete operations.
    final boolean
    Indicates if conditional delete operations using If-Match are supported.
    final boolean
    Indicates if conditional delete operations using If-None-Match are supported.
    final boolean
    Indicates if conditional delete operations using version match are supported.
    final boolean
    Indicates if conditional delete operations using version non-match are supported.
    final boolean
    Indicates if recursive delete operations are supported.
    final boolean
    Indicates if versions delete operations are supported.
    final boolean
    Indicates if list operations are supported.
    final boolean
    Indicates if listing with deleted files included is supported.
    final boolean
    Indicates if listing with a glob pattern is supported by this service stack.
    final boolean
    Indicates if list operations support result limiting.
    final boolean
    Indicates if recursive listing is supported.
    final boolean
    Indicates if list operations support continuation from a specific point.
    final boolean
    Indicates if listing with versions included is supported.
    final boolean
    Indicates if presigned URL generation is supported.
    final boolean
    Indicates if presigned URLs for delete operations are supported.
    final boolean
    Indicates if presigned URLs for read operations are supported.
    final boolean
    Indicates if presigned URLs for stat operations are supported.
    final boolean
    Indicates if presigned URLs for write operations are supported.
    final boolean
    Indicates if the operator supports read operations.
    final boolean
    Indicates if the operator supports requesting stored full-file checksum metadata.
    final boolean
    Indicates if conditional read operations using If-Match are supported.
    final boolean
    Indicates if conditional read operations using If-Modified-Since are supported.
    final boolean
    Indicates if conditional read operations using If-None-Match are supported.
    final boolean
    Indicates if conditional read operations using If-Unmodified-Since are supported.
    final boolean
    Indicates if conditional read operations using version match are supported.
    final boolean
    Indicates if conditional read operations using version non-match are supported.
    final boolean
    Indicates if Cache-Control header override is supported during read operations.
    final boolean
    Indicates if Content-Disposition header override is supported during read operations.
    final boolean
    Indicates if Content-Type header override is supported during read operations.
    final boolean
    Indicates if suffix read operations are supported.
    final boolean
    Indicates if versions read operations are supported.
    final boolean
    Indicates if rename operations are supported.
    final boolean
    Indicates if conditional rename operations with if-not-exists are supported.
    final boolean
    Indicates if restore operations are supported.
    final boolean
    Indicates if conditional restore operations using if-not-exists are supported.
    final boolean
    Indicates if restoring a specific version is supported.
    final boolean
    Indicate if the operator supports shared access.
    final boolean
    Indicates if the operator supports metadata retrieval operations.
    final boolean
    Indicates if conditional stat operations using If-Match are supported.
    final boolean
    Indicates if conditional stat operations using If-Modified-Since are supported.
    final boolean
    Indicates if conditional stat operations using If-None-Match are supported.
    final boolean
    Indicates if conditional stat operations using If-Unmodified-Since are supported.
    final boolean
    Indicates if conditional stat operations using version match are supported.
    final boolean
    Indicates if conditional stat operations using version non-match are supported.
    final boolean
    Indicates if Cache-Control header override is supported during stat operations.
    final boolean
    Indicates if Content-Disposition header override is supported during stat operations.
    final boolean
    Indicates if Content-Type header override is supported during stat operations.
    final boolean
    Indicates if versions stat operations are supported.
    final boolean
    Indicates if the operator supports write operations.
    final boolean
    Indicates if append operations are supported.
    final boolean
    Indicates if an open, non-append writer can copy eligible byte ranges from existing objects without transferring the copied bytes through the client.
    final boolean
    Indicates if writing empty content is supported.
    final boolean
    Indicates if multiple write operations can be performed on the same object.
    final long
    Maximum size supported for multipart uploads.
    final long
    Minimum size required for multipart uploads (except for the last part).
    final long
    Maximum total size supported for write operations.
    final boolean
    Indicates if Cache-Control can be specified during write operations.
    final boolean
    Indicates if non-append writes support native verification with a checksum algorithm selected by the service.
    final boolean
    Indicates if Content-Disposition can be specified during write operations.
    final boolean
    Indicates if Content-Encoding can be specified during write operations.
    final boolean
    Indicates if a write can store Content-Language and a subsequent stat can retrieve it.
    final boolean
    Indicates if Content-Type can be specified during write operations.
    final boolean
    Indicates if writes can set a lifetime for the new file.
    final boolean
    Indicates if conditional write operations using If-Match are supported.
    final boolean
    Indicates if conditional write operations using If-None-Match are supported.
    final boolean
    Indicates if write operations can be conditional on object non-existence.
    final boolean
    Indicates if conditional write operations using version match are supported.
    final boolean
    Indicates if conditional write operations using version non-match are supported.
    final boolean
    Indicates if custom user metadata can be attached during write operations.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
    Use Capability.builder() instead.
    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.
    Use Capability.builder() instead.
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • stat

      public final boolean stat
      Indicates if the operator supports metadata retrieval operations.
    • statWithIfMatch

      public final boolean statWithIfMatch
      Indicates if conditional stat operations using If-Match are supported.
    • statWithIfNoneMatch

      public final boolean statWithIfNoneMatch
      Indicates if conditional stat operations using If-None-Match are supported.
    • statWithIfVersionMatch

      public final boolean statWithIfVersionMatch
      Indicates if conditional stat operations using version match are supported.
    • statWithIfVersionNotMatch

      public final boolean statWithIfVersionNotMatch
      Indicates if conditional stat operations using version non-match are supported.
    • statWithIfModifiedSince

      public final boolean statWithIfModifiedSince
      Indicates if conditional stat operations using If-Modified-Since are supported.
    • statWithIfUnmodifiedSince

      public final boolean statWithIfUnmodifiedSince
      Indicates if conditional stat operations using If-Unmodified-Since are supported.
    • statWithOverrideCacheControl

      public final boolean statWithOverrideCacheControl
      Indicates if Cache-Control header override is supported during stat operations.
    • statWithOverrideContentDisposition

      public final boolean statWithOverrideContentDisposition
      Indicates if Content-Disposition header override is supported during stat operations.
    • statWithOverrideContentType

      public final boolean statWithOverrideContentType
      Indicates if Content-Type header override is supported during stat operations.
    • statWithVersion

      public final boolean statWithVersion
      Indicates if versions stat operations are supported.
    • read

      public final boolean read
      Indicates if the operator supports read operations.
    • readWithIfMatch

      public final boolean readWithIfMatch
      Indicates if conditional read operations using If-Match are supported.
    • readWithIfNoneMatch

      public final boolean readWithIfNoneMatch
      Indicates if conditional read operations using If-None-Match are supported.
    • readWithIfVersionMatch

      public final boolean readWithIfVersionMatch
      Indicates if conditional read operations using version match are supported.
    • readWithIfVersionNotMatch

      public final boolean readWithIfVersionNotMatch
      Indicates if conditional read operations using version non-match are supported.
    • readWithIfModifiedSince

      public final boolean readWithIfModifiedSince
      Indicates if conditional read operations using If-Modified-Since are supported.
    • readWithIfUnmodifiedSince

      public final boolean readWithIfUnmodifiedSince
      Indicates if conditional read operations using If-Unmodified-Since are supported.
    • readWithOverrideCacheControl

      public final boolean readWithOverrideCacheControl
      Indicates if Cache-Control header override is supported during read operations.
    • readWithOverrideContentDisposition

      public final boolean readWithOverrideContentDisposition
      Indicates if Content-Disposition header override is supported during read operations.
    • readWithOverrideContentType

      public final boolean readWithOverrideContentType
      Indicates if Content-Type header override is supported during read operations.
    • readWithVersion

      public final boolean readWithVersion
      Indicates if versions read operations are supported.
    • readWithSuffix

      public final boolean readWithSuffix
      Indicates if suffix read operations are supported.
    • readWithChecksum

      public final boolean readWithChecksum
      Indicates if the operator supports requesting stored full-file checksum metadata. Stat and read responses may include that metadata when requested.
    • write

      public final boolean write
      Indicates if the operator supports write operations.
    • writeCanMulti

      public final boolean writeCanMulti
      Indicates if multiple write operations can be performed on the same object.
    • writeCanEmpty

      public final boolean writeCanEmpty
      Indicates if writing empty content is supported.
    • writeCanAppend

      public final boolean writeCanAppend
      Indicates if append operations are supported.
    • writeCanCopyFrom

      public final boolean writeCanCopyFrom
      Indicates 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 writeWithContentType
      Indicates if Content-Type can be specified during write operations.
    • writeWithContentDisposition

      public final boolean writeWithContentDisposition
      Indicates if Content-Disposition can be specified during write operations.
    • writeWithContentEncoding

      public final boolean writeWithContentEncoding
      Indicates if Content-Encoding can be specified during write operations.
    • writeWithContentLanguage

      public final boolean writeWithContentLanguage
      Indicates if a write can store Content-Language and a subsequent stat can retrieve it.
    • writeWithCacheControl

      public final boolean writeWithCacheControl
      Indicates if Cache-Control can be specified during write operations.
    • writeWithIfMatch

      public final boolean writeWithIfMatch
      Indicates if conditional write operations using If-Match are supported.
    • writeWithIfNoneMatch

      public final boolean writeWithIfNoneMatch
      Indicates if conditional write operations using If-None-Match are supported.
    • writeWithIfVersionMatch

      public final boolean writeWithIfVersionMatch
      Indicates if conditional write operations using version match are supported.
    • writeWithIfVersionNotMatch

      public final boolean writeWithIfVersionNotMatch
      Indicates if conditional write operations using version non-match are supported.
    • writeWithIfNotExists

      public final boolean writeWithIfNotExists
      Indicates if write operations can be conditional on object non-existence.
    • writeWithUserMetadata

      public final boolean writeWithUserMetadata
      Indicates if custom user metadata can be attached during write operations.
    • writeWithExpires

      public final boolean writeWithExpires
      Indicates if writes can set a lifetime for the new file.
    • writeWithChecksum

      public final boolean writeWithChecksum
      Indicates 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 writeMultiMaxSize
      Maximum size supported for multipart uploads. For example, AWS S3 supports up to 5GiB per part in multipart uploads.
    • writeMultiMinSize

      public final long writeMultiMinSize
      Minimum size required for multipart uploads (except for the last part). For example, AWS S3 requires at least 5MiB per part.
    • writeTotalMaxSize

      public final long writeTotalMaxSize
      Maximum total size supported for write operations. For example, Cloudflare D1 has a 1MB total size limit.
    • createDir

      public final boolean createDir
      Indicates if directory creation is supported.
    • delete

      public final boolean delete
      Indicates if delete operations are supported.
    • deleteWithVersion

      public final boolean deleteWithVersion
      Indicates if versions delete operations are supported.
    • deleteWithRecursive

      public final boolean deleteWithRecursive
      Indicates if recursive delete operations are supported.
    • deleteWithIfMatch

      public final boolean deleteWithIfMatch
      Indicates if conditional delete operations using If-Match are supported.
    • deleteWithIfNoneMatch

      public final boolean deleteWithIfNoneMatch
      Indicates if conditional delete operations using If-None-Match are supported.
    • deleteWithIfVersionMatch

      public final boolean deleteWithIfVersionMatch
      Indicates if conditional delete operations using version match are supported.
    • deleteWithIfVersionNotMatch

      public final boolean deleteWithIfVersionNotMatch
      Indicates if conditional delete operations using version non-match are supported.
    • deleteMaxSize

      public final long deleteMaxSize
      Maximum size supported for single delete operations.
    • copy

      public final boolean copy
      Indicates if copy operations are supported.
    • copyWithIfNotExists

      public final boolean copyWithIfNotExists
      Indicates if conditional copy operations with if-not-exists are supported.
    • copyWithIfMatch

      public final boolean copyWithIfMatch
      Indicates if conditional copy operations with if-match are supported.
    • copyWithIfNoneMatch

      public final boolean copyWithIfNoneMatch
      Indicates if conditional copy operations with if-none-match are supported.
    • copyWithIfVersionMatch

      public final boolean copyWithIfVersionMatch
      Indicates if conditional copy operations using version match are supported.
    • copyWithIfVersionNotMatch

      public final boolean copyWithIfVersionNotMatch
      Indicates if conditional copy operations using version non-match are supported.
    • copyWithSourceVersion

      public final boolean copyWithSourceVersion
      Indicates if copy operations from a specific source version are supported.
    • copyWithUserMetadata

      public final boolean copyWithUserMetadata
      Indicates if copy operations can replace the destination's user metadata.
    • copyWithContentType

      public final boolean copyWithContentType
      Indicates if copy operations can replace the destination's Content-Type.
    • copyWithContentLanguage

      public final boolean copyWithContentLanguage
      Indicates if copy operations can replace the destination's Content-Language.
    • copyCanMulti

      public final boolean copyCanMulti
      Indicates if copy operations can be split into multiple server-side tasks.
    • copyMultiMaxSize

      public final long copyMultiMaxSize
      Maximum size supported for segmented copy tasks.
    • copyMultiMinSize

      public final long copyMultiMinSize
      Minimum size required for segmented copy tasks.
    • compose

      public final boolean compose
      Indicates if the operator supports composing complete source objects.
    • composeWithContentType

      public final boolean composeWithContentType
      Indicates if Content-Type can be specified during composition.
    • composeWithContentDisposition

      public final boolean composeWithContentDisposition
      Indicates if Content-Disposition can be specified during composition.
    • composeWithContentEncoding

      public final boolean composeWithContentEncoding
      Indicates if Content-Encoding can be specified during composition.
    • composeWithCacheControl

      public final boolean composeWithCacheControl
      Indicates if Cache-Control can be specified during composition.
    • composeWithUserMetadata

      public final boolean composeWithUserMetadata
      Indicates if custom user metadata can be attached during composition.
    • composeWithIfMatch

      public final boolean composeWithIfMatch
      Indicates if composition supports a destination ETag match condition.
    • composeWithIfNoneMatch

      public final boolean composeWithIfNoneMatch
      Indicates if composition supports a destination ETag non-match condition.
    • composeWithIfVersionMatch

      public final boolean composeWithIfVersionMatch
      Indicates if composition supports a destination version match condition.
    • composeWithIfVersionNotMatch

      public final boolean composeWithIfVersionNotMatch
      Indicates if composition supports a destination version non-match condition.
    • composeWithIfNotExists

      public final boolean composeWithIfNotExists
      Indicates if composition can require a missing destination.
    • composeWithSourceVersion

      public final boolean composeWithSourceVersion
      Indicates if composition can select a specific source version.
    • composeWithSourceIfMatch

      public final boolean composeWithSourceIfMatch
      Indicates if composition supports a source ETag match condition.
    • restore

      public final boolean restore
      Indicates if restore operations are supported.
    • restoreWithVersion

      public final boolean restoreWithVersion
      Indicates if restoring a specific version is supported.
    • restoreWithIfNotExists

      public final boolean restoreWithIfNotExists
      Indicates if conditional restore operations using if-not-exists are supported.
    • rename

      public final boolean rename
      Indicates if rename operations are supported.
    • renameWithIfNotExists

      public final boolean renameWithIfNotExists
      Indicates if conditional rename operations with if-not-exists are supported.
    • list

      public final boolean list
      Indicates if list operations are supported.
    • listWithLimit

      public final boolean listWithLimit
      Indicates if list operations support result limiting.
    • listWithStartAfter

      public final boolean listWithStartAfter
      Indicates if list operations support continuation from a specific point.
    • listWithRecursive

      public final boolean listWithRecursive
      Indicates if recursive listing is supported.
    • listWithVersions

      public final boolean listWithVersions
      Indicates if listing with versions included is supported.
    • listWithDeleted

      public final boolean listWithDeleted
      Indicates if listing with deleted files included is supported.
    • listWithGlob

      public final boolean listWithGlob
      Indicates if listing with a glob pattern is supported by this service stack.
    • presign

      public final boolean presign
      Indicates if presigned URL generation is supported.
    • presignRead

      public final boolean presignRead
      Indicates if presigned URLs for read operations are supported.
    • presignStat

      public final boolean presignStat
      Indicates if presigned URLs for stat operations are supported.
    • presignWrite

      public final boolean presignWrite
      Indicates if presigned URLs for write operations are supported.
    • presignDelete

      public final boolean presignDelete
      Indicates if presigned URLs for delete operations are supported.
    • shared

      public final boolean shared
      Indicate if the operator supports shared access.
  • 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.
      Use Capability.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.
      Use Capability.builder() instead.
      Creates capabilities with the legacy 46-parameter signature.