Interface UserDefinedTableAggregateFunction

    • Method Detail

      • subtract

        Value subtract​(Value aggregateKey,
                       Value aggregatedValue,
                       Value toBeSubtracted)
                throws UdfException
        Handles removal of a value from the aggregation.
        Parameters:
        aggregateKey - The key of the field being aggregated on.
        aggregatedValue - The current aggregated value.
        toBeSubtracted - The value to be subtracted from the current aggregated value.
        Returns:
        The updated aggregated value.
        Throws:
        UdfException - if the subtraction failed.