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 |
---|---|
java.util.List<Expression> |
arguments(Expression rowIndex)
Returns Linq4j form of arguments.
|
java.util.List<RexNode> |
rexArguments()
Returns
RexNode representation of arguments. |
call, key, keyField
accumulator
currentBlock, currentNullables, exitBlock, nestBlock, nestBlock, nestBlock
compareRows, computeIndex, rowInFrame, rowInPartition, rowTranslator
endIndex, getFrameRowCount, getPartitionRowCount, hasRows, index, startIndex
java.util.List<RexNode> rexArguments()
RexNode
representation of arguments.
This can be useful for manual translation of required arguments with
different NullPolicy
.RexNode
representation of argumentsjava.util.List<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–2019 The Apache Software Foundation. All rights reserved.