Class ChecksumUtils


  • public class ChecksumUtils
    extends Object
    Utility class related to checksums.
    • Field Detail

      • CRC_HASH_FUNCTION

        public static final org.apache.flink.shaded.guava32.com.google.common.hash.HashFunction CRC_HASH_FUNCTION
        THe crc hash function used by Google storage.
    • Constructor Detail

      • ChecksumUtils

        public ChecksumUtils()
    • Method Detail

      • convertChecksumToString

        public static String convertChecksumToString​(int checksum)
        Converts an int crc32 checksum to the string format used by Google storage, which is the base64 string for the int in big-endian format.
        Parameters:
        checksum - The int checksum
        Returns:
        The string checksum