Class Adler32CheckSum
- java.lang.Object
-
- com.linkedin.venice.kafka.validation.checksum.CheckSum
-
- com.linkedin.venice.kafka.validation.checksum.Adler32CheckSum
-
public class Adler32CheckSum extends CheckSum
Running checksum implementations based on Adler32. N.B.: Class taken from Voldemort.
-
-
Constructor Summary
Constructors Constructor Description Adler32CheckSum()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getFinalCheckSum()
CheckSumType
getType()
void
resetInternal()
void
updateChecksum(byte[] input, int startIndex, int length)
-
Methods inherited from class com.linkedin.venice.kafka.validation.checksum.CheckSum
getCheckSum, getEncodedState, getInstance, getInstance, reset, toString, update, update, update, update
-
-
-
-
Method Detail
-
getFinalCheckSum
public byte[] getFinalCheckSum()
- Specified by:
getFinalCheckSum
in classCheckSum
-
updateChecksum
public void updateChecksum(byte[] input, int startIndex, int length)
- Specified by:
updateChecksum
in classCheckSum
-
resetInternal
public void resetInternal()
- Specified by:
resetInternal
in classCheckSum
-
getType
public CheckSumType getType()
-
-