public interface MasterGlobalCommUsageAggregators
Modifier and Type | Method and Description |
---|---|
void |
broadcast(String name,
org.apache.hadoop.io.Writable value)
Broadcast given value to all workers for next computation.
|
<R extends org.apache.hadoop.io.Writable> |
getReduced(String name)
Get reduced value from previous worker computation.
|
<S,R extends org.apache.hadoop.io.Writable> |
registerReducer(String name,
ReduceOperation<S,R> reduceOp)
Register reducer to be reduced in the next worker computation,
using given name and operations.
|
<S,R extends org.apache.hadoop.io.Writable> |
registerReducer(String name,
ReduceOperation<S,R> reduceOp,
R globalInitialValue)
Register reducer to be reduced in the next worker computation, using
given name and operations, starting globally from globalInitialValue.
|
<S,R extends org.apache.hadoop.io.Writable> void registerReducer(String name, ReduceOperation<S,R> reduceOp)
S
- Single value typeR
- Reduced value typename
- Name of the reducerreduceOp
- Reduce operations<S,R extends org.apache.hadoop.io.Writable> void registerReducer(String name, ReduceOperation<S,R> reduceOp, R globalInitialValue)
S
- Single value typeR
- Reduced value typename
- Name of the reducerreduceOp
- Reduce operationsglobalInitialValue
- Global initial value<R extends org.apache.hadoop.io.Writable> R getReduced(String name)
R
- Reduced value typename
- Name of the reducervoid broadcast(String name, org.apache.hadoop.io.Writable value)
name
- Name of the broadcast objectvalue
- ValueCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.