- Type Parameters:
R - Reduced object type.
- All Implemented Interfaces:
- ReduceOperation<R,R>, org.apache.hadoop.io.Writable
- Direct Known Subclasses:
- AggregatorReduceOperation, AndReduce, LongXorReduce, MaxPairReducer, MaxReduce, MinReduce, OrReduce, ReducersBenchmark.TestLongSumReducer, SumReduce
public abstract class ReduceSameTypeOperation<R extends org.apache.hadoop.io.Writable>
ReduceOperation object when single object being reduced is of
same type as reduced value.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.io.Writable
public final R reduceMerge(R curValue,
Add partially reduced value to current partially reduced value.
Commonly, returned value should be same as curValue argument.
- Specified by:
reduceMerge in interface
ReduceOperation<R extends org.apache.hadoop.io.Writable,R extends org.apache.hadoop.io.Writable>
curValue - Partial value into which to reduce and store the result
valueToReduce - Partial value to be reduced
- reduced value
Copyright © 2011-2019 The Apache Software Foundation. All Rights Reserved.