public static class Utils.ChecksumHashCode extends Object implements SimpleAccumulator<Utils.ChecksumHashCode>
Utils.ChecksumHashCode
.Constructor and Description |
---|
ChecksumHashCode() |
ChecksumHashCode(long count,
long checksum) |
Modifier and Type | Method and Description |
---|---|
void |
add(Utils.ChecksumHashCode value) |
Utils.ChecksumHashCode |
clone()
Duplicates the accumulator.
|
boolean |
equals(Object obj) |
long |
getChecksum() |
long |
getCount() |
Utils.ChecksumHashCode |
getLocalValue() |
int |
hashCode() |
void |
merge(Accumulator<Utils.ChecksumHashCode,Utils.ChecksumHashCode> other)
Used by system internally to merge the collected parts of an accumulator at the end of the
job.
|
void |
resetLocal()
Reset the local value.
|
String |
toString() |
public ChecksumHashCode()
public ChecksumHashCode(long count, long checksum)
public long getCount()
public long getChecksum()
public void add(Utils.ChecksumHashCode value)
add
in interface Accumulator<Utils.ChecksumHashCode,Utils.ChecksumHashCode>
value
- The value to add to the accumulator objectpublic Utils.ChecksumHashCode getLocalValue()
getLocalValue
in interface Accumulator<Utils.ChecksumHashCode,Utils.ChecksumHashCode>
public void resetLocal()
Accumulator
resetLocal
in interface Accumulator<Utils.ChecksumHashCode,Utils.ChecksumHashCode>
public void merge(Accumulator<Utils.ChecksumHashCode,Utils.ChecksumHashCode> other)
Accumulator
merge
in interface Accumulator<Utils.ChecksumHashCode,Utils.ChecksumHashCode>
other
- Reference to accumulator to merge in.public Utils.ChecksumHashCode clone()
Accumulator
CloneNotSupportedException
clone
in interface Accumulator<Utils.ChecksumHashCode,Utils.ChecksumHashCode>
clone
in class Object
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.