public class LagAggFunction<T> extends BuiltInAggregateFunction<T,LagAggFunction.LagAcc<T>>
AggregateFunction.| 限定符和类型 | 类和说明 |
|---|---|
static class |
LagAggFunction.LagAcc<T>
Accumulator for LAG.
|
| 构造器和说明 |
|---|
LagAggFunction(org.apache.flink.table.types.logical.LogicalType[] valueTypes) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, getResultTypeclose, functionIdentifier, open, toStringpublic LagAggFunction(org.apache.flink.table.types.logical.LogicalType[] valueTypes)
public List<org.apache.flink.table.types.DataType> getArgumentDataTypes()
public org.apache.flink.table.types.DataType getAccumulatorDataType()
public org.apache.flink.table.types.DataType getOutputDataType()
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 在类中 org.apache.flink.table.functions.AggregateFunction<T,LagAggFunction.LagAcc<T>>public LagAggFunction.LagAcc<T> createAccumulator()
createAccumulator 在类中 org.apache.flink.table.functions.ImperativeAggregateFunction<T,LagAggFunction.LagAcc<T>>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.