Interface WinAggResultContext
-
- All Superinterfaces:
AggResetContext
,AggResultContext
,NestedBlockBuilder
,WinAggFrameContext
,WinAggFrameResultContext
- All Known Subinterfaces:
WinAggAddContext
- All Known Implementing Classes:
WinAggAddContextImpl
,WinAggResultContextImpl
public interface WinAggResultContext extends AggResultContext, WinAggFrameResultContext
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 java.util.List<Expression>
arguments(Expression rowIndex)
Returns Linq4j form of arguments.java.util.List<RexNode>
rexArguments()
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
-
Methods inherited from interface org.apache.calcite.adapter.enumerable.NestedBlockBuilder
currentBlock, currentNullables, exitBlock, nestBlock, 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 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
-
arguments
java.util.List<Expression> arguments(Expression rowIndex)
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
-
-