Class LastValueAggFunction<T>
java.lang.Object
org.apache.flink.table.functions.UserDefinedFunction
org.apache.flink.table.functions.ImperativeAggregateFunction<T,ACC>
org.apache.flink.table.functions.AggregateFunction<T,ACC>
org.apache.flink.table.runtime.functions.aggregate.BuiltInAggregateFunction<T,org.apache.flink.table.data.RowData>
org.apache.flink.table.runtime.functions.aggregate.LastValueAggFunction<T>
- All Implemented Interfaces:
Serializable,org.apache.flink.table.functions.FunctionDefinition
@Internal
public final class LastValueAggFunction<T>
extends BuiltInAggregateFunction<T,org.apache.flink.table.data.RowData>
Built-in LAST_VALUE aggregate function.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLastValueAggFunction(org.apache.flink.table.types.logical.LogicalType valueType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulate(org.apache.flink.table.data.GenericRowData acc, org.apache.flink.table.data.StringData value) voidaccumulate(org.apache.flink.table.data.GenericRowData acc, org.apache.flink.table.data.StringData value, Long order) voidaccumulate(org.apache.flink.table.data.RowData rowData, Object value) voidaccumulate(org.apache.flink.table.data.RowData rowData, Object value, Long order) org.apache.flink.table.data.RowDataorg.apache.flink.table.types.DataTypeList<org.apache.flink.table.types.DataType>org.apache.flink.table.types.DataTypegetValue(org.apache.flink.table.data.RowData rowData) booleanvoidresetAccumulator(org.apache.flink.table.data.RowData rowData) Methods inherited from class org.apache.flink.table.runtime.functions.aggregate.BuiltInAggregateFunction
getRequirements, getTypeInferenceMethods inherited from class org.apache.flink.table.functions.AggregateFunction
getKindMethods inherited from class org.apache.flink.table.functions.ImperativeAggregateFunction
getAccumulatorType, getResultTypeMethods inherited from class org.apache.flink.table.functions.UserDefinedFunction
close, functionIdentifier, open, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.table.functions.FunctionDefinition
supportsConstantFolding
-
Constructor Details
-
LastValueAggFunction
public LastValueAggFunction(org.apache.flink.table.types.logical.LogicalType valueType)
-
-
Method Details
-
getArgumentDataTypes
- Overrides:
getArgumentDataTypesin classBuiltInAggregateFunction<T,org.apache.flink.table.data.RowData>
-
getAccumulatorDataType
public org.apache.flink.table.types.DataType getAccumulatorDataType()- Overrides:
getAccumulatorDataTypein classBuiltInAggregateFunction<T,org.apache.flink.table.data.RowData>
-
getOutputDataType
public org.apache.flink.table.types.DataType getOutputDataType()- Overrides:
getOutputDataTypein classBuiltInAggregateFunction<T,org.apache.flink.table.data.RowData>
-
isDeterministic
public boolean isDeterministic()- Specified by:
isDeterministicin interfaceorg.apache.flink.table.functions.FunctionDefinition- Overrides:
isDeterministicin classBuiltInAggregateFunction<T,org.apache.flink.table.data.RowData>
-
createAccumulator
public org.apache.flink.table.data.RowData createAccumulator()- Specified by:
createAccumulatorin classorg.apache.flink.table.functions.ImperativeAggregateFunction<T,org.apache.flink.table.data.RowData>
-
accumulate
-
accumulate
-
accumulate
public void accumulate(org.apache.flink.table.data.GenericRowData acc, org.apache.flink.table.data.StringData value) -
accumulate
public void accumulate(org.apache.flink.table.data.GenericRowData acc, org.apache.flink.table.data.StringData value, Long order) -
resetAccumulator
public void resetAccumulator(org.apache.flink.table.data.RowData rowData) -
getValue
- Specified by:
getValuein classorg.apache.flink.table.functions.AggregateFunction<T,org.apache.flink.table.data.RowData>
-