public abstract class RankingWindowFunction extends Object implements WindowFunction
| Modifier and Type | Field and Description |
|---|---|
protected WindowIndex |
windowIndex |
| Constructor and Description |
|---|
RankingWindowFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
processRow(BlockBuilder output,
boolean newPeerGroup,
int peerGroupCount,
int currentPosition)
Process a row by outputting the result of the window function.
|
void |
processRow(BlockBuilder output,
int peerGroupStart,
int peerGroupEnd,
int frameStart,
int frameEnd)
Process a row by outputting the result of the window function.
|
void |
reset()
Reset state for a new partition (including the first one).
|
void |
reset(WindowIndex windowIndex)
Reset state for a new partition (including the first one).
|
protected WindowIndex windowIndex
public final void reset(WindowIndex windowIndex)
WindowFunctionreset in interface WindowFunctionwindowIndex - the window index which contains sorted values for the partitionpublic final void processRow(BlockBuilder output, int peerGroupStart, int peerGroupEnd, int frameStart, int frameEnd)
WindowFunctionprocessRow in interface WindowFunctionoutput - the BlockBuilder to use for writing the output rowpeerGroupStart - the position of the first row in the peer grouppeerGroupEnd - the position of the last row in the peer groupframeStart - the position of the first row in the window frameframeEnd - the position of the last row in the window framepublic void reset()
public abstract void processRow(BlockBuilder output, boolean newPeerGroup, int peerGroupCount, int currentPosition)
output - the BlockBuilder to use for writing the output rownewPeerGroup - if this row starts a new peer grouppeerGroupCount - the total number of rows in this peer groupcurrentPosition - the current position for this rowCopyright © 2012–2022. All rights reserved.