public abstract class RankLikeAggFunctionBase extends DeclarativeAggregateFunction
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.flink.table.expressions.UnresolvedReferenceExpression[] |
lastValues |
protected org.apache.flink.table.types.logical.LogicalType[] |
orderKeyTypes |
protected org.apache.flink.table.expressions.UnresolvedReferenceExpression |
sequence |
| Constructor and Description |
|---|
RankLikeAggFunctionBase(org.apache.flink.table.types.logical.LogicalType[] orderKeyTypes) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.flink.table.expressions.Expression |
generateInitLiteral(org.apache.flink.table.types.logical.LogicalType orderType) |
org.apache.flink.table.types.DataType |
getResultType()
The result type of the function.
|
org.apache.flink.table.expressions.Expression |
getValueExpression()
An expression which returns the final value for this aggregate function.
|
org.apache.flink.table.expressions.Expression[] |
mergeExpressions()
A sequence of expressions for merging two aggregation buffers together.
|
int |
operandCount()
How many operands your function will deal with.
|
protected org.apache.flink.table.expressions.Expression |
orderKeyEqualsExpression() |
org.apache.flink.table.expressions.Expression[] |
retractExpressions()
Expressions for retracting the mutable aggregation buffer based on an input row.
|
accumulateExpressions, aggBufferAttributes, getAggBufferTypes, getKind, getTypeInference, initialValuesExpressions, mergeOperand, mergeOperands, operand, operandsclose, functionIdentifier, open, toStringprotected org.apache.flink.table.expressions.UnresolvedReferenceExpression sequence
protected org.apache.flink.table.expressions.UnresolvedReferenceExpression[] lastValues
protected org.apache.flink.table.types.logical.LogicalType[] orderKeyTypes
public RankLikeAggFunctionBase(org.apache.flink.table.types.logical.LogicalType[] orderKeyTypes)
public int operandCount()
DeclarativeAggregateFunctionoperandCount in class DeclarativeAggregateFunctionpublic org.apache.flink.table.types.DataType getResultType()
DeclarativeAggregateFunctiongetResultType in class DeclarativeAggregateFunctionpublic org.apache.flink.table.expressions.Expression[] retractExpressions()
DeclarativeAggregateFunctionretractExpressions in class DeclarativeAggregateFunctionpublic org.apache.flink.table.expressions.Expression[] mergeExpressions()
DeclarativeAggregateFunctionattributeName and mergeOperand(attributeName) to refer to the attributes corresponding to each of the buffers
being merged.mergeExpressions in class DeclarativeAggregateFunctionpublic org.apache.flink.table.expressions.Expression getValueExpression()
DeclarativeAggregateFunctiongetValueExpression in class DeclarativeAggregateFunctionprotected org.apache.flink.table.expressions.Expression orderKeyEqualsExpression()
protected org.apache.flink.table.expressions.Expression generateInitLiteral(org.apache.flink.table.types.logical.LogicalType orderType)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.