Interface AggResultContext
-
- All Superinterfaces:
AggResetContext
,NestedBlockBuilder
- All Known Subinterfaces:
AggAddContext
,WinAggAddContext
,WinAggResultContext
- All Known Implementing Classes:
AggAddContextImpl
,AggResultContextImpl
,WinAggAddContextImpl
,WinAggResultContextImpl
public interface AggResultContext extends NestedBlockBuilder, AggResetContext
Information for a call toAggImplementor.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 ofAggResetContext.accumulator()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AggregateCall
call()
Expression
key()
Expression by which to reference the key upon which the values in the accumulator were aggregated.Expression
keyField(int i)
Returns an expression that references thei
th field of the key, cast to the appropriate type.-
Methods inherited from interface org.apache.calcite.adapter.enumerable.AggResetContext
accumulator
-
Methods inherited from interface org.apache.calcite.adapter.enumerable.NestedBlockBuilder
currentBlock, currentNullables, exitBlock, nestBlock, nestBlock, nestBlock
-
-
-
-
Method Detail
-
key
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
Expression keyField(int i)
Returns an expression that references thei
th field of the key, cast to the appropriate type.
-
call
AggregateCall call()
-
-