Package org.apache.hadoop.fs
Class FileChecksum
java.lang.Object
org.apache.hadoop.fs.FileChecksum
- All Implemented Interfaces:
Writable
An abstract class representing file checksums for files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if both the algorithms and the values are the same.abstract StringThe checksum algorithm name.abstract byte[]getBytes()The value of the checksum in bytes.org.apache.hadoop.fs.Options.ChecksumOptabstract intThe length of the checksum in bytes.inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.io.Writable
readFields, write
-
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
public org.apache.hadoop.fs.Options.ChecksumOpt getChecksumOpt() -
equals
Return true if both the algorithms and the values are the same. -
hashCode
public int hashCode()
-