Package org.apache.flink.fs.gs.utils
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 org.apache.flink.shaded.guava32.com.google.common.hash.HashFunction
CRC_HASH_FUNCTION
THe crc hash function used by Google storage.
-
Constructor Summary
Constructors Constructor Description ChecksumUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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
-
-