Class LagAggFunction<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,LagAggFunction.LagAcc<T>>
org.apache.flink.table.runtime.functions.aggregate.LagAggFunction<T>
- All Implemented Interfaces:
Serializable,org.apache.flink.table.functions.FunctionDefinition
Lag
AggregateFunction.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLagAggFunction(org.apache.flink.table.types.logical.LogicalType[] valueTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulate(LagAggFunction.LagAcc<T> acc, T value) voidaccumulate(LagAggFunction.LagAcc<T> acc, T value, int offset) voidaccumulate(LagAggFunction.LagAcc<T> acc, T value, int offset, T defaultValue) org.apache.flink.table.types.DataTypeList<org.apache.flink.table.types.DataType>org.apache.flink.table.types.DataTypegetValue(LagAggFunction.LagAcc<T> acc) voidMethods inherited from class org.apache.flink.table.runtime.functions.aggregate.BuiltInAggregateFunction
getRequirements, getTypeInference, isDeterministicMethods 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
-
LagAggFunction
public LagAggFunction(org.apache.flink.table.types.logical.LogicalType[] valueTypes)
-
-
Method Details
-
getArgumentDataTypes
- Overrides:
getArgumentDataTypesin classBuiltInAggregateFunction<T,LagAggFunction.LagAcc<T>>
-
getAccumulatorDataType
public org.apache.flink.table.types.DataType getAccumulatorDataType()- Overrides:
getAccumulatorDataTypein classBuiltInAggregateFunction<T,LagAggFunction.LagAcc<T>>
-
getOutputDataType
public org.apache.flink.table.types.DataType getOutputDataType()- Overrides:
getOutputDataTypein classBuiltInAggregateFunction<T,LagAggFunction.LagAcc<T>>
-
accumulate
- Throws:
Exception
-
accumulate
- Throws:
Exception
-
accumulate
public void accumulate(LagAggFunction.LagAcc<T> acc, T value, int offset, T defaultValue) throws Exception - Throws:
Exception
-
resetAccumulator
- Throws:
Exception
-
getValue
- Specified by:
getValuein classorg.apache.flink.table.functions.AggregateFunction<T,LagAggFunction.LagAcc<T>>
-
createAccumulator
- Specified by:
createAccumulatorin classorg.apache.flink.table.functions.ImperativeAggregateFunction<T,LagAggFunction.LagAcc<T>>
-