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) |
reduceMerge
public static final ReducersBenchmark.TestLongSumReducer INSTANCE
public org.apache.hadoop.io.LongWritable createInitialValue()
ReduceOperation
public org.apache.hadoop.io.LongWritable reduce(org.apache.hadoop.io.LongWritable curValue, org.apache.hadoop.io.LongWritable valueToReduce)
ReduceOperation
curValue
- Partial value into which to reduce and store the resultvalueToReduce
- Single value to be reducedpublic void readFields(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
IOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.