Writable@LimitedPrivate("HDFS")
@Unstable
public class CompositeCrcFileChecksum
extends FileChecksum
| Modifier and Type | Field | Description |
|---|---|---|
static int |
LENGTH |
| Constructor | Description |
|---|---|
CompositeCrcFileChecksum(int crc,
DataChecksum.Type crcType,
int bytesPerCrc) |
Create a CompositeCrcFileChecksum.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getAlgorithmName() |
The checksum algorithm name.
|
byte[] |
getBytes() |
The value of the checksum in bytes.
|
Options.ChecksumOpt |
getChecksumOpt() |
|
int |
getLength() |
The length of the checksum in bytes.
|
void |
readFields(java.io.DataInput in) |
Deserialize the fields of this object from
in. |
java.lang.String |
toString() |
|
void |
write(java.io.DataOutput out) |
Serialize the fields of this object to
out. |
equals, hashCodepublic static final int LENGTH
public CompositeCrcFileChecksum(int crc,
DataChecksum.Type crcType,
int bytesPerCrc)
crc - crc.crcType - crcType.bytesPerCrc - bytesPerCrc.public java.lang.String getAlgorithmName()
FileChecksumgetAlgorithmName in class FileChecksumpublic int getLength()
FileChecksumgetLength in class FileChecksumpublic byte[] getBytes()
FileChecksumgetBytes in class FileChecksumpublic Options.ChecksumOpt getChecksumOpt()
getChecksumOpt in class FileChecksumpublic void readFields(java.io.DataInput in)
throws java.io.IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in - DataInput to deseriablize this object from.java.io.IOException - any other problem for readFields.public void write(java.io.DataOutput out)
throws java.io.IOException
Writableout.out - DataOuput to serialize this object into.java.io.IOException - any other problem for write.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.