Interface AggResultContext
- All Superinterfaces:
AggResetContext,NestedBlockBuilder
- All Known Subinterfaces:
AggAddContext,WinAggAddContext,WinAggResultContext
- All Known Implementing Classes:
AggAddContextImpl,AggResultContextImpl,WinAggAddContextImpl,WinAggResultContextImpl
Information for a call to
AggImplementor.implementResult(AggContext, AggResultContext)
Typically, the aggregation implementation will convert
AggResetContext.accumulator() to the resulting value of the aggregation. The
implementation MUST NOT destroy the contents of AggResetContext.accumulator().
-
Method Summary
Modifier and TypeMethodDescriptioncall()Returns the aggregate call.@Nullable Expressionkey()Expression by which to reference the key upon which the values in the accumulator were aggregated.keyField(int i) Returns an expression that references theith field of the key, cast to the appropriate type.Returns aRexToLixTranslatorsuitable to transform the result.Methods inherited from interface org.apache.calcite.adapter.enumerable.AggResetContext
accumulatorMethods inherited from interface org.apache.calcite.adapter.enumerable.NestedBlockBuilder
currentBlock, exitBlock, nestBlock, nestBlock
-
Method Details
-
key
@Nullable Expression key()Expression by which to reference the key upon which the values in the accumulator were aggregated. Most aggregate functions depend on only the accumulator, but quasi-aggregate functions such as GROUPING access at the key. -
keyField
Returns an expression that references theith field of the key, cast to the appropriate type. -
call
AggregateCall call()Returns the aggregate call. -
resultTranslator
RexToLixTranslator resultTranslator()Returns aRexToLixTranslatorsuitable to transform the result.
-