public static class ReducersBenchmark.TestLongSumReducer extends ReduceSameTypeOperation<org.apache.hadoop.io.LongWritable>
| Modifier and Type | Field and Description |
|---|---|
static ReducersBenchmark.TestLongSumReducer |
INSTANCE
Singleton
|
| Constructor and Description |
|---|
TestLongSumReducer() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.io.LongWritable |
createInitialValue()
Return new reduced value which is neutral to reduce operation.
|
void |
readFields(DataInput in) |
org.apache.hadoop.io.LongWritable |
reduce(org.apache.hadoop.io.LongWritable curValue,
org.apache.hadoop.io.LongWritable valueToReduce)
Add a new value.
|
void |
write(DataOutput out) |
reduceMergepublic static final ReducersBenchmark.TestLongSumReducer INSTANCE
public org.apache.hadoop.io.LongWritable createInitialValue()
ReduceOperationpublic org.apache.hadoop.io.LongWritable reduce(org.apache.hadoop.io.LongWritable curValue,
org.apache.hadoop.io.LongWritable valueToReduce)
ReduceOperationcurValue - Partial value into which to reduce and store the resultvalueToReduce - Single value to be reducedpublic void readFields(DataInput in) throws IOException
IOExceptionpublic void write(DataOutput out) throws IOException
IOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.