public class WinAggResetContextImpl extends AggResetContextImpl implements WinAggResetContext
WinAggResetContext.| Constructor and Description |
|---|
WinAggResetContextImpl(BlockBuilder block,
List<Expression> accumulator,
Expression index,
Expression startIndex,
Expression endIndex,
Expression hasRows,
Expression frameRowCount,
Expression partitionRowCount)
Creates window aggregate reset context.
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
endIndex()
Returns the index of the very last row in partition.
|
Expression |
getFrameRowCount()
Returns the number of rows in the current frame (subject to framing
clause).
|
Expression |
getPartitionRowCount()
Returns the number of rows in the current partition (as determined by
PARTITION BY clause).
|
Expression |
hasRows()
Returns the boolean expression that tells if the partition has rows.
|
Expression |
index()
Returns the index of the current row in the partition.
|
Expression |
startIndex()
Returns the index of the very first row in partition.
|
accumulatorcurrentBlock, currentNullables, exitBlock, nestBlock, nestBlock, nestBlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccumulatorcurrentBlock, currentNullables, exitBlock, nestBlock, nestBlock, nestBlockpublic WinAggResetContextImpl(BlockBuilder block, List<Expression> accumulator, Expression index, Expression startIndex, Expression endIndex, Expression hasRows, Expression frameRowCount, Expression partitionRowCount)
block - code block that will contain the added initializationaccumulator - accumulator variables that store the intermediate
aggregate stateindex - index of the current row in the partitionstartIndex - index of the very first row in partitionendIndex - index of the very last row in partitionhasRows - boolean expression that tells if the partition has rowsframeRowCount - number of rows in the current framepartitionRowCount - number of rows in the current partitionpublic Expression index()
WinAggFrameContextWinAggFrameContext.startIndex() when you need zero-based row position.index in interface WinAggFrameContextpublic Expression startIndex()
WinAggFrameContextstartIndex in interface WinAggFrameContextpublic Expression endIndex()
WinAggFrameContextendIndex in interface WinAggFrameContextpublic Expression hasRows()
WinAggFrameContexthasRows in interface WinAggFrameContextpublic Expression getFrameRowCount()
WinAggFrameContextgetFrameRowCount in interface WinAggFrameContextpublic Expression getPartitionRowCount()
WinAggFrameContextgetPartitionRowCount in interface WinAggFrameContextCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.