Class S3ExpressStorage

java.lang.Object
org.apache.hadoop.fs.s3a.impl.S3ExpressStorage

public final class S3ExpressStorage extends Object
Anything needed to support Amazon S3 Express One Zone Storage. These have bucket names like s3a://bucket--usw2-az2--x-s3/
  • Field Details

    • STORE_CAPABILITY_S3_EXPRESS_STORAGE

      public static final String STORE_CAPABILITY_S3_EXPRESS_STORAGE
      Is this S3Express storage? value "fs.s3a.capability.s3express.storage".
      See Also:
    • PRODUCT_NAME

      public static final String PRODUCT_NAME
      What is the official product name? used for error messages and logging: "Amazon S3 Express One Zone Storage".
      See Also:
    • ZONE_LENGTH

      public static final int ZONE_LENGTH
    • S3EXPRESS_STORE_SUFFIX

      public static final String S3EXPRESS_STORE_SUFFIX
      Suffix of S3Express storage bucket names..
      See Also:
  • Method Details

    • isS3ExpressStore

      public static boolean isS3ExpressStore(String bucket, String endpoint)
      Is a bucket an S3Express store? This may get confused against third party stores, so takes the endpoint and only supports aws endpoints round the world.
      Parameters:
      bucket - bucket to probe
      endpoint - endpoint string. If empty, this is considered an AWS endpoint.
      Returns:
      true if the store is S3 Express.
    • hasS3ExpressSuffix

      public static boolean hasS3ExpressSuffix(String bucket)
      Check for a bucket name matching -does not look at endpoint.
      Parameters:
      bucket - bucket to probe.
      Returns:
      true if the suffix is present