Package org.apache.hadoop.fs
Class FileChecksum
java.lang.Object
org.apache.hadoop.fs.FileChecksum
- All Implemented Interfaces:
Writable
- Direct Known Subclasses:
CompositeCrcFileChecksum,EtagChecksum,MD5MD5CRC32FileChecksum
An abstract class representing file checksums for files.
-
Constructor Details
-
FileChecksum
public FileChecksum()
-
-
Method Details
-
getAlgorithmName
The checksum algorithm name.- Returns:
- algorithm name.
-
getLength
public abstract int getLength()The length of the checksum in bytes.- Returns:
- length.
-
getBytes
public abstract byte[] getBytes()The value of the checksum in bytes.- Returns:
- byte array.
-
getChecksumOpt
-
equals
Return true if both the algorithms and the values are the same. -
hashCode
public int hashCode()
-