public class LagAggFunction<T> extends BuiltInAggregateFunction<T,LagAggFunction.LagAcc<T>>
AggregateFunction.| Modifier and Type | Class and Description |
|---|---|
static class |
LagAggFunction.LagAcc<T>
Accumulator for LAG.
|
| Constructor and Description |
|---|
LagAggFunction(org.apache.flink.table.types.logical.LogicalType[] valueTypes) |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(LagAggFunction.LagAcc<T> acc,
T value) |
void |
accumulate(LagAggFunction.LagAcc<T> acc,
T value,
int offset) |
void |
accumulate(LagAggFunction.LagAcc<T> acc,
T value,
int offset,
T defaultValue) |
LagAggFunction.LagAcc<T> |
createAccumulator() |
org.apache.flink.table.types.DataType |
getAccumulatorDataType() |
List<org.apache.flink.table.types.DataType> |
getArgumentDataTypes() |
org.apache.flink.table.types.DataType |
getOutputDataType() |
T |
getValue(LagAggFunction.LagAcc<T> acc) |
void |
resetAccumulator(LagAggFunction.LagAcc<T> acc) |
getRequirements, getTypeInference, isDeterministicgetAccumulatorType, getResultTypepublic LagAggFunction(org.apache.flink.table.types.logical.LogicalType[] valueTypes)
public List<org.apache.flink.table.types.DataType> getArgumentDataTypes()
getArgumentDataTypes in class BuiltInAggregateFunction<T,LagAggFunction.LagAcc<T>>public org.apache.flink.table.types.DataType getAccumulatorDataType()
getAccumulatorDataType in class BuiltInAggregateFunction<T,LagAggFunction.LagAcc<T>>public org.apache.flink.table.types.DataType getOutputDataType()
getOutputDataType in class BuiltInAggregateFunction<T,LagAggFunction.LagAcc<T>>public void accumulate(LagAggFunction.LagAcc<T> acc, T value) throws Exception
Exceptionpublic void accumulate(LagAggFunction.LagAcc<T> acc, T value, int offset) throws Exception
Exceptionpublic void accumulate(LagAggFunction.LagAcc<T> acc, T value, int offset, T defaultValue) throws Exception
Exceptionpublic void resetAccumulator(LagAggFunction.LagAcc<T> acc) throws Exception
Exceptionpublic T getValue(LagAggFunction.LagAcc<T> acc)
getValue in class org.apache.flink.table.functions.AggregateFunction<T,LagAggFunction.LagAcc<T>>public LagAggFunction.LagAcc<T> createAccumulator()
createAccumulator in class org.apache.flink.table.functions.ImperativeAggregateFunction<T,LagAggFunction.LagAcc<T>>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.