public static final class PlanUnwrappingReduceOperator.ReduceWrapper<T,K> extends WrappingFunction<ReduceFunction<T>> implements ReduceFunction<Tuple2<K,T>>
wrappedFunction
Modifier and Type | Method and Description |
---|---|
Tuple2<K,T> |
reduce(Tuple2<K,T> value1,
Tuple2<K,T> value2)
The core method of ReduceFunction, combining two values into one value of the same type.
|
close, getWrappedFunction, open, setRuntimeContext
getIterationRuntimeContext, getRuntimeContext
public Tuple2<K,T> reduce(Tuple2<K,T> value1, Tuple2<K,T> value2) throws Exception
ReduceFunction
reduce
in interface ReduceFunction<Tuple2<K,T>>
value1
- The first value to combine.value2
- The second value to combine.Exception
- This method may throw exceptions. Throwing an exception will cause the operation
to fail and may trigger recovery.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.