Package org.apache.hadoop.fs.s3a.impl
Class S3ExpressStorage
java.lang.Object
org.apache.hadoop.fs.s3a.impl.S3ExpressStorage
Anything needed to support Amazon S3 Express One Zone Storage.
These have bucket names like
s3a://bucket--usw2-az2--x-s3/-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasS3ExpressSuffix(String bucket) Check for a bucket name matching -does not look at endpoint.static booleanisS3ExpressStore(String bucket, String endpoint) Is a bucket an S3Express store?
-
Field Details
-
STORE_CAPABILITY_S3_EXPRESS_STORAGE
Is this S3Express storage? value "fs.s3a.capability.s3express.storage".- See Also:
-
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
Suffix of S3Express storage bucket names..- See Also:
-
-
Method Details
-
isS3ExpressStore
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 probeendpoint- endpoint string. If empty, this is considered an AWS endpoint.- Returns:
- true if the store is S3 Express.
-
hasS3ExpressSuffix
Check for a bucket name matching -does not look at endpoint.- Parameters:
bucket- bucket to probe.- Returns:
- true if the suffix is present
-