Package org.apache.hadoop.fs.s3a.impl
Class ChecksumSupport
java.lang.Object
org.apache.hadoop.fs.s3a.impl.ChecksumSupport
Utility class to support operations on S3 object checksum.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic software.amazon.awssdk.services.s3.model.ChecksumAlgorithmgetChecksumAlgorithm(org.apache.hadoop.conf.Configuration conf) Get the checksum algorithm to be used for data integrity check of the objects in S3.
-
Field Details
-
NONE
Special checksum algorithm to declare that no checksum is required: "NONE".- See Also:
-
CRC32C
CRC32C, mapped to CRC32_C algorithm class.- See Also:
-
CRC64NVME
CRC64NVME, mapped to CRC64_NVME algorithm class.- See Also:
-
-
Method Details
-
getChecksumAlgorithm
public static software.amazon.awssdk.services.s3.model.ChecksumAlgorithm getChecksumAlgorithm(org.apache.hadoop.conf.Configuration conf) Get the checksum algorithm to be used for data integrity check of the objects in S3. This operation includes validating if the provided value is a supported checksum algorithm.- Parameters:
conf- configuration to scan- Returns:
- the checksum algorithm to be passed on S3 requests
- Throws:
IllegalArgumentException- if the checksum algorithm is not known or not supported
-