presto-main/src/main/java/io/prestosql/operator/aggregation/DoubleSumAggregation.java/DoubleSumAggregation/removeInput
class DoubleSumAggregation:    @RemoveInputFunction
    public static void removeInput(@AggregationState LongDoubleState state, @SqlType(StandardTypes.DOUBLE) double value)
    {
        state.setFirst(state.getFirst() - 1);
        state.setSecond(state.getSecond() - value);
    }