public class OffsetOverFrame extends Object implements OverWindowFrame
See LeadLagAggFunction.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OffsetOverFrame.CalcOffsetFunc
Calc offset from base row.
|
| Constructor and Description |
|---|
OffsetOverFrame(GeneratedAggsHandleFunction aggsHandleFunction,
Long offset,
OffsetOverFrame.CalcOffsetFunc calcOffsetFunc) |
| Modifier and Type | Method and Description |
|---|---|
void |
open(ExecutionContext ctx)
Open to init with
ExecutionContext. |
void |
prepare(ResettableExternalBuffer rows)
Prepare for next partition.
|
org.apache.flink.table.data.RowData |
process(int index,
org.apache.flink.table.data.RowData current)
return the ACC of the window frame.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNextOrNullpublic OffsetOverFrame(GeneratedAggsHandleFunction aggsHandleFunction, Long offset, OffsetOverFrame.CalcOffsetFunc calcOffsetFunc)
aggsHandleFunction - the aggregate functionoffset - it means the offset within a partition if calcOffsetFunc is null.calcOffsetFunc - calculate the real offset when the function is not null.public void open(ExecutionContext ctx) throws Exception
OverWindowFrameExecutionContext.open in interface OverWindowFrameExceptionpublic void prepare(ResettableExternalBuffer rows) throws Exception
OverWindowFrameprepare in interface OverWindowFrameExceptionpublic org.apache.flink.table.data.RowData process(int index,
org.apache.flink.table.data.RowData current)
throws Exception
OverWindowFrameprocess in interface OverWindowFrameExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.