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.ReturnsRexNoderepresentation of arguments.@Nullable RexNodeReturnsRexNoderepresentation of the filter, or null.Returns aRexToLixTranslatorsuitable to transform the arguments.Methods inherited from interface org.apache.calcite.adapter.enumerable.AggResetContext
accumulatorMethods inherited from interface org.apache.calcite.adapter.enumerable.AggResultContext
call, key, keyField, resultTranslatorMethods inherited from interface org.apache.calcite.adapter.enumerable.NestedBlockBuilder
currentBlock, exitBlock, nestBlock, nestBlock
-
Method Details
-
rexArguments
ReturnsRexNoderepresentation of arguments. This can be useful for manual translation of required arguments with differentNullPolicy.- Returns:
RexNoderepresentation of arguments
-
rexFilterArgument
@Nullable RexNode rexFilterArgument()ReturnsRexNoderepresentation 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 aRexToLixTranslatorsuitable to transform the arguments.- Returns:
RexToLixTranslatorsuitable to transform the arguments
-