Class RpcGlobalAggregateManager

java.lang.Object
org.apache.flink.runtime.taskexecutor.rpc.RpcGlobalAggregateManager
All Implemented Interfaces:
GlobalAggregateManager

public class RpcGlobalAggregateManager extends Object implements GlobalAggregateManager
  • Constructor Details

    • RpcGlobalAggregateManager

      public RpcGlobalAggregateManager(JobMasterGateway jobMasterGateway)
  • Method Details

    • 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 interface GlobalAggregateManager
      Parameters:
      aggregateName - The name of the aggregate to update
      aggregand - The value to add to the aggregate
      aggregateFunction - The function to apply to the current aggregate and aggregand to obtain the new aggregate value
      Returns:
      The updated aggregate
      Throws:
      IOException