public abstract class AvgAggFunction extends DeclarativeAggregateFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
AvgAggFunction.ByteAvgAggFunction
Built-in Byte Avg aggregate function.
|
static class |
AvgAggFunction.DecimalAvgAggFunction
Built-in Decimal Avg aggregate function.
|
static class |
AvgAggFunction.DoubleAvgAggFunction
Built-in Double Avg aggregate function.
|
static class |
AvgAggFunction.FloatAvgAggFunction
Built-in Float Avg aggregate function.
|
static class |
AvgAggFunction.IntAvgAggFunction
Built-in Integer Avg aggregate function.
|
static class |
AvgAggFunction.LongAvgAggFunction
Built-in Long Avg aggregate function.
|
static class |
AvgAggFunction.ShortAvgAggFunction
Built-in Short Avg aggregate function.
|
| Constructor and Description |
|---|
AvgAggFunction() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.table.expressions.Expression[] |
accumulateExpressions()
Expressions for accumulating the mutable aggregation buffer based on an input row.
|
org.apache.flink.table.expressions.UnresolvedReferenceExpression[] |
aggBufferAttributes()
All fields of the aggregate buffer.
|
org.apache.flink.table.types.DataType[] |
getAggBufferTypes()
All types of the aggregate buffer.
|
abstract org.apache.flink.table.types.DataType |
getSumType() |
org.apache.flink.table.expressions.Expression |
getValueExpression()
If all input are nulls, count will be 0 and we will get null after the division.
|
org.apache.flink.table.expressions.Expression[] |
initialValuesExpressions()
Expressions for initializing empty aggregation buffers.
|
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.
|
org.apache.flink.table.expressions.Expression[] |
retractExpressions()
Expressions for retracting the mutable aggregation buffer based on an input row.
|
getKind, getResultType, getTypeInference, mergeOperand, mergeOperands, operand, operandsclose, functionIdentifier, open, toStringpublic abstract org.apache.flink.table.types.DataType getSumType()
public int operandCount()
DeclarativeAggregateFunctionoperandCount in class DeclarativeAggregateFunctionpublic org.apache.flink.table.expressions.UnresolvedReferenceExpression[] aggBufferAttributes()
DeclarativeAggregateFunctionaggBufferAttributes in class DeclarativeAggregateFunctionpublic org.apache.flink.table.types.DataType[] getAggBufferTypes()
DeclarativeAggregateFunctiongetAggBufferTypes in class DeclarativeAggregateFunctionpublic org.apache.flink.table.expressions.Expression[] initialValuesExpressions()
DeclarativeAggregateFunctioninitialValuesExpressions in class DeclarativeAggregateFunctionpublic org.apache.flink.table.expressions.Expression[] accumulateExpressions()
DeclarativeAggregateFunctionaccumulateExpressions 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()
getValueExpression in class DeclarativeAggregateFunctionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.