Class TupleSummaryAggregator<R extends org.apache.flink.api.java.tuple.Tuple>
- java.lang.Object
-
- org.apache.flink.api.java.summarize.aggregation.TupleSummaryAggregator<R>
-
- All Implemented Interfaces:
Serializable,Aggregator<org.apache.flink.api.java.tuple.Tuple,R>
@Internal public class TupleSummaryAggregator<R extends org.apache.flink.api.java.tuple.Tuple> extends Object implements Aggregator<org.apache.flink.api.java.tuple.Tuple,R>
Aggregate tuples using an array of aggregators, one for each "column" or position within the Tuple.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TupleSummaryAggregator(Aggregator[] columnAggregators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaggregate(org.apache.flink.api.java.tuple.Tuple value)Add a value to the current aggregation.voidcombine(Aggregator<org.apache.flink.api.java.tuple.Tuple,R> other)Combine two aggregations of the same type.Rresult()Provide the final result of the aggregation.
-
-
-
Constructor Detail
-
TupleSummaryAggregator
public TupleSummaryAggregator(Aggregator[] columnAggregators)
-
-
Method Detail
-
aggregate
public void aggregate(org.apache.flink.api.java.tuple.Tuple value)
Description copied from interface:AggregatorAdd a value to the current aggregation.- Specified by:
aggregatein interfaceAggregator<org.apache.flink.api.java.tuple.Tuple,R extends org.apache.flink.api.java.tuple.Tuple>
-
combine
public void combine(Aggregator<org.apache.flink.api.java.tuple.Tuple,R> other)
Description copied from interface:AggregatorCombine two aggregations of the same type.(Implementations will need to do an unchecked cast).
- Specified by:
combinein interfaceAggregator<org.apache.flink.api.java.tuple.Tuple,R extends org.apache.flink.api.java.tuple.Tuple>
-
result
public R result()
Description copied from interface:AggregatorProvide the final result of the aggregation.- Specified by:
resultin interfaceAggregator<org.apache.flink.api.java.tuple.Tuple,R extends org.apache.flink.api.java.tuple.Tuple>
-
-