Class RpcGlobalAggregateManager
- java.lang.Object
-
- org.apache.flink.runtime.taskexecutor.rpc.RpcGlobalAggregateManager
-
- All Implemented Interfaces:
GlobalAggregateManager
public class RpcGlobalAggregateManager extends Object implements GlobalAggregateManager
-
-
Constructor Summary
Constructors Constructor Description RpcGlobalAggregateManager(JobMasterGateway jobMasterGateway)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <IN,ACC,OUT>
OUTupdateGlobalAggregate(String aggregateName, Object aggregand, org.apache.flink.api.common.functions.AggregateFunction<IN,ACC,OUT> aggregateFunction)
Update the global aggregate and return the new value.
-
-
-
Constructor Detail
-
RpcGlobalAggregateManager
public RpcGlobalAggregateManager(JobMasterGateway jobMasterGateway)
-
-
Method Detail
-
updateGlobalAggregate
public <IN,ACC,OUT> OUT updateGlobalAggregate(String aggregateName, Object aggregand, org.apache.flink.api.common.functions.AggregateFunction<IN,ACC,OUT> aggregateFunction) throws IOException
Description copied from interface:GlobalAggregateManager
Update the global aggregate and return the new value.- Specified by:
updateGlobalAggregate
in interfaceGlobalAggregateManager
- Parameters:
aggregateName
- The name of the aggregate to updateaggregand
- The value to add to the aggregateaggregateFunction
- The function to apply to the current aggregate and aggregand to obtain the new aggregate value- Returns:
- The updated aggregate
- Throws:
IOException
-
-