Class RpcGlobalAggregateManager

    • 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 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