T
- element typepublic class ChecksumHashCode<T> extends DataSetAnalyticBase<T,ChecksumHashCode.Checksum>
DataSet
as well as the checksum (sum over element hashes).Modifier and Type | Class and Description |
---|---|
static class |
ChecksumHashCode.Checksum
Wraps checksum and count.
|
env
Constructor and Description |
---|
ChecksumHashCode() |
Modifier and Type | Method and Description |
---|---|
ChecksumHashCode.Checksum |
getResult()
This method must be called after the program has executed.
|
ChecksumHashCode<T> |
run(DataSet<T> input)
All
DataSetAnalytic processing must be terminated by an
OutputFormat and obtained via accumulators rather than
returned by a DataSet . |
execute, execute
public ChecksumHashCode<T> run(DataSet<T> input) throws Exception
DataSetAnalytic
DataSetAnalytic
processing must be terminated by an
OutputFormat
and obtained via accumulators rather than
returned by a DataSet
.run
in interface DataSetAnalytic<T,ChecksumHashCode.Checksum>
run
in class DataSetAnalyticBase<T,ChecksumHashCode.Checksum>
input
- input datasetException
public ChecksumHashCode.Checksum getResult()
DataSetAnalytic
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.