public abstract class RankLikeAggFunctionBase extends DeclarativeAggregateFunction
Modifier and Type | Field and Description |
---|---|
protected UnresolvedReferenceExpression[] |
lastValues |
protected LogicalType[] |
orderKeyTypes |
protected UnresolvedReferenceExpression |
sequence |
Constructor and Description |
---|
RankLikeAggFunctionBase(LogicalType[] orderKeyTypes) |
Modifier and Type | Method and Description |
---|---|
protected Expression |
generateInitLiteral(LogicalType orderType) |
DataType |
getResultType()
The result type of the function.
|
Expression |
getValueExpression()
An expression which returns the final value for this aggregate function.
|
Expression[] |
mergeExpressions()
A sequence of expressions for merging two aggregation buffers together.
|
int |
operandCount()
How many operands your function will deal with.
|
protected Expression |
orderKeyEqualsExpression() |
Expression[] |
retractExpressions()
Expressions for retracting the mutable aggregation buffer based on an input row.
|
accumulateExpressions, aggBufferAttributes, getAggBufferTypes, getKind, getTypeInference, initialValuesExpressions, mergeOperand, mergeOperands, operand, operands
close, functionIdentifier, open, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRequirements, isDeterministic, supportsConstantFolding
protected UnresolvedReferenceExpression sequence
protected UnresolvedReferenceExpression[] lastValues
protected LogicalType[] orderKeyTypes
public RankLikeAggFunctionBase(LogicalType[] orderKeyTypes)
public int operandCount()
DeclarativeAggregateFunction
operandCount
in class DeclarativeAggregateFunction
public DataType getResultType()
DeclarativeAggregateFunction
getResultType
in class DeclarativeAggregateFunction
public Expression[] retractExpressions()
DeclarativeAggregateFunction
retractExpressions
in class DeclarativeAggregateFunction
public Expression[] mergeExpressions()
DeclarativeAggregateFunction
attributeName
and mergeOperand(attributeName)
to refer to the attributes corresponding to each of the buffers
being merged.mergeExpressions
in class DeclarativeAggregateFunction
public Expression getValueExpression()
DeclarativeAggregateFunction
getValueExpression
in class DeclarativeAggregateFunction
protected Expression orderKeyEqualsExpression()
protected Expression generateInitLiteral(LogicalType orderType)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.