public interface WindowFunction
| Modifier and Type | Method and Description |
|---|---|
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(WindowIndex windowIndex)
Reset state for a new partition (including the first one).
|
void reset(WindowIndex windowIndex)
windowIndex - the window index which contains sorted values for the partitionvoid processRow(BlockBuilder output, int peerGroupStart, int peerGroupEnd, int frameStart, int frameEnd)
output - 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 frameCopyright © 2012–2022. All rights reserved.