Class ValueSummaryAggregator<VT extends org.apache.flink.types.Value,​PT,​R,​A extends Aggregator<PT,​R>>

    • Constructor Detail

      • ValueSummaryAggregator

        public ValueSummaryAggregator()
    • Method Detail

      • aggregate

        public void aggregate​(VT value)
        Description copied from interface: Aggregator
        Add a value to the current aggregation.
        Specified by:
        aggregate in interface Aggregator<VT extends org.apache.flink.types.Value,​PT>
      • combine

        public void combine​(Aggregator<VT,​R> otherSameType)
        Description copied from interface: Aggregator
        Combine two aggregations of the same type.

        (Implementations will need to do an unchecked cast).

        Specified by:
        combine in interface Aggregator<VT extends org.apache.flink.types.Value,​PT>
      • result

        public R result()
        Description copied from interface: Aggregator
        Provide the final result of the aggregation.
        Specified by:
        result in interface Aggregator<VT extends org.apache.flink.types.Value,​PT>
      • initPrimitiveAggregator

        protected abstract A initPrimitiveAggregator()
        Initialize an aggregator that can be used for the underlying primitive in the Value type.

        E.g. DoubleValues can easily be converted to Double and could use an underlying Aggregator<Double,?>

      • getValue

        protected abstract PT getValue​(VT value)
        Get the value out of a value type.