| Package | Description |
|---|---|
| org.apache.flink.api.common.functions | |
| org.apache.flink.api.common.state | |
| org.apache.flink.api.java.typeutils |
| Modifier and Type | Class and Description |
|---|---|
class |
RichAggregateFunction<IN,ACC,OUT>
Rich variant of the
AggregateFunction. |
| Modifier and Type | Method and Description |
|---|---|
AggregateFunction<IN,ACC,OUT> |
AggregatingStateDescriptor.getAggregateFunction()
Returns the aggregate function to be used for the state.
|
| Constructor and Description |
|---|
AggregatingStateDescriptor(String name,
AggregateFunction<IN,ACC,OUT> aggFunction,
Class<ACC> stateType)
Creates a new state descriptor with the given name, function, and type.
|
AggregatingStateDescriptor(String name,
AggregateFunction<IN,ACC,OUT> aggFunction,
TypeInformation<ACC> stateType)
Creates a new
ReducingStateDescriptor with the given name and default value. |
AggregatingStateDescriptor(String name,
AggregateFunction<IN,ACC,OUT> aggFunction,
TypeSerializer<ACC> typeSerializer)
Creates a new
ValueStateDescriptor with the given name and default value. |
| Modifier and Type | Method and Description |
|---|---|
static <IN,ACC> TypeInformation<ACC> |
TypeExtractor.getAggregateFunctionAccumulatorType(AggregateFunction<IN,ACC,?> function,
TypeInformation<IN> inType,
String functionName,
boolean allowMissing) |
static <IN,OUT> TypeInformation<OUT> |
TypeExtractor.getAggregateFunctionReturnType(AggregateFunction<IN,?,OUT> function,
TypeInformation<IN> inType,
String functionName,
boolean allowMissing) |
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.