Interface AggAddContext
-
- All Superinterfaces:
AggResetContext
,AggResultContext
,NestedBlockBuilder
- All Known Subinterfaces:
WinAggAddContext
- All Known Implementing Classes:
AggAddContextImpl
,WinAggAddContextImpl
public interface AggAddContext extends AggResultContext
Information for a call toAggImplementor.implementAdd(AggContext, AggAddContext)
.Typically, the aggregation implementation will use
arguments()
orrexArguments()
to update aggregate value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Expression>
arguments()
Returns Linq4j form of arguments.java.util.List<RexNode>
rexArguments()
ReturnsRexNode
representation of arguments.RexNode
rexFilterArgument()
ReturnsRexNode
representation of the filter, or null.RexToLixTranslator
rowTranslator()
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
-
Methods inherited from interface org.apache.calcite.adapter.enumerable.NestedBlockBuilder
currentBlock, currentNullables, exitBlock, nestBlock, nestBlock, nestBlock
-
-
-
-
Method Detail
-
rexArguments
java.util.List<RexNode> rexArguments()
ReturnsRexNode
representation of arguments. This can be useful for manual translation of required arguments with differentNullPolicy
.- Returns:
RexNode
representation of arguments
-
rexFilterArgument
RexNode rexFilterArgument()
ReturnsRexNode
representation of the filter, or null.
-
arguments
java.util.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
-
-