Package org.apache.flink.fs.gs.utils
Class ChecksumUtils
java.lang.Object
org.apache.flink.fs.gs.utils.ChecksumUtils
Utility class related to checksums.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.flink.shaded.guava32.com.google.common.hash.HashFunctionTHe crc hash function used by Google storage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertChecksumToString(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.
-
Field Details
-
CRC_HASH_FUNCTION
public static final org.apache.flink.shaded.guava32.com.google.common.hash.HashFunction CRC_HASH_FUNCTIONTHe crc hash function used by Google storage.
-
-
Constructor Details
-
ChecksumUtils
public ChecksumUtils()
-
-
Method Details
-
convertChecksumToString
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
-