Class StringSummaryAggregator
- java.lang.Object
-
- org.apache.flink.api.java.summarize.aggregation.StringSummaryAggregator
-
- All Implemented Interfaces:
Serializable,Aggregator<String,StringColumnSummary>
@Internal public class StringSummaryAggregator extends Object implements Aggregator<String,StringColumnSummary>
Aggregatorthat calculates statistics forStringvalues.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringSummaryAggregator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaggregate(String value)Add a value to the current aggregation.voidcombine(Aggregator<String,StringColumnSummary> otherSameType)Combine two aggregations of the same type.StringColumnSummaryresult()Provide the final result of the aggregation.
-
-
-
Method Detail
-
aggregate
public void aggregate(String value)
Description copied from interface:AggregatorAdd a value to the current aggregation.- Specified by:
aggregatein interfaceAggregator<String,StringColumnSummary>
-
combine
public void combine(Aggregator<String,StringColumnSummary> otherSameType)
Description copied from interface:AggregatorCombine two aggregations of the same type.(Implementations will need to do an unchecked cast).
- Specified by:
combinein interfaceAggregator<String,StringColumnSummary>
-
result
public StringColumnSummary result()
Description copied from interface:AggregatorProvide the final result of the aggregation.- Specified by:
resultin interfaceAggregator<String,StringColumnSummary>
-
-