public interface WinAggResultContext extends AggResultContext, WinAggFrameResultContext
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().
| Modifier and Type | Method and Description |
|---|---|
List<Expression> |
arguments(Expression rowIndex)
Returns Linq4j form of arguments.
|
List<RexNode> |
rexArguments()
Returns
RexNode representation of arguments. |
accumulatorcurrentBlock, currentNullables, exitBlock, nestBlock, nestBlock, nestBlockcompareRows, computeIndex, rowInFrame, rowInPartition, rowTranslatorendIndex, getFrameRowCount, getPartitionRowCount, hasRows, index, startIndexList<RexNode> rexArguments()
RexNode representation of arguments.
This can be useful for manual translation of required arguments with
different NullPolicy.RexNode representation of argumentsList<Expression> arguments(Expression rowIndex)
rowTranslator().translateList(rexArguments()).
This is handy if you need just operate on argument.rowIndex - index of the requested row. The index must be in range
of partition's startIndex and endIndex.Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.