Interface WinAggResultContext
- All Superinterfaces:
AggResetContext
,AggResultContext
,NestedBlockBuilder
,WinAggFrameContext
,WinAggFrameResultContext
- All Known Subinterfaces:
WinAggAddContext
- All Known Implementing Classes:
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 TypeMethodDescriptionarguments
(Expression rowIndex) Returns Linq4j form of arguments.ReturnsRexNode
representation of 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
Methods inherited from interface org.apache.calcite.adapter.enumerable.WinAggFrameContext
endIndex, getFrameRowCount, getPartitionRowCount, hasRows, index, startIndex
Methods inherited from interface org.apache.calcite.adapter.enumerable.WinAggFrameResultContext
compareRows, computeIndex, rowInFrame, rowInPartition, rowTranslator
-
Method Details
-
rexArguments
ReturnsRexNode
representation of arguments. This can be useful for manual translation of required arguments with differentNullPolicy
.- Returns:
RexNode
representation of arguments
-
arguments
Returns Linq4j form of arguments. The resulting value is equivalent torowTranslator().translateList(rexArguments())
. This is handy if you need just operate on argument.- Parameters:
rowIndex
- index of the requested row. The index must be in range of partition's startIndex and endIndex.- Returns:
- Linq4j form of arguments of the particular row
-