Class ChecksumUtils

java.lang.Object
org.apache.flink.fs.gs.utils.ChecksumUtils

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

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.flink.shaded.guava32.com.google.common.hash.HashFunction
    THe crc hash function used by Google storage.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • 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 Details

    • ChecksumUtils

      public ChecksumUtils()
  • Method Details

    • 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