Class ChecksumSupport

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

public final class ChecksumSupport extends Object
Utility class to support operations on S3 object checksum.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    CRC32C, mapped to CRC32_C algorithm class.
    static final String
    CRC64NVME, mapped to CRC64_NVME algorithm class.
    static final String
    Special checksum algorithm to declare that no checksum is required: "NONE".
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

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

  • 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