Interface AggAddContext
- All Superinterfaces:
AggResetContext
,AggResultContext
,NestedBlockBuilder
- All Known Subinterfaces:
WinAggAddContext
- All Known Implementing Classes:
AggAddContextImpl
,WinAggAddContextImpl
Information for a call to
AggImplementor.implementAdd(AggContext, AggAddContext)
.
Typically, the aggregation implementation will use arguments()
or rexArguments()
to update aggregate value.
-
Method Summary
Modifier and TypeMethodDescriptionReturns Linq4j form of arguments.ReturnsRexNode
representation of arguments.@Nullable RexNode
ReturnsRexNode
representation of the filter, or null.Returns aRexToLixTranslator
suitable to transform the arguments.Methods inherited from interface org.apache.calcite.adapter.enumerable.AggResetContext
accumulator
Methods inherited from interface org.apache.calcite.adapter.enumerable.AggResultContext
call, key, keyField, resultTranslator
Methods inherited from interface org.apache.calcite.adapter.enumerable.NestedBlockBuilder
currentBlock, exitBlock, nestBlock, nestBlock
-
Method Details
-
rexArguments
ReturnsRexNode
representation of arguments. This can be useful for manual translation of required arguments with differentNullPolicy
.- Returns:
RexNode
representation of arguments
-
rexFilterArgument
@Nullable RexNode rexFilterArgument()ReturnsRexNode
representation of the filter, or null. -
arguments
List<Expression> arguments()Returns Linq4j form of arguments. The resulting value is equivalent torowTranslator().translateList(rexArguments())
. This is handy if you need just operate on argument.- Returns:
- Linq4j form of arguments.
-
rowTranslator
RexToLixTranslator rowTranslator()Returns aRexToLixTranslator
suitable to transform the arguments.- Returns:
RexToLixTranslator
suitable to transform the arguments
-