public class OffsetOverFrame extends Object implements OverWindowFrame
See LeadLagAggFunction.
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
OffsetOverFrame.CalcOffsetFunc
Calc offset from base row.
|
| 构造器和说明 |
|---|
OffsetOverFrame(GeneratedAggsHandleFunction aggsHandleFunction,
Long offset,
OffsetOverFrame.CalcOffsetFunc calcOffsetFunc) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 OverWindowFrameExceptionpublic void prepare(ResettableExternalBuffer rows) throws Exception
OverWindowFrameprepare 在接口中 OverWindowFrameExceptionpublic org.apache.flink.table.data.RowData process(int index,
org.apache.flink.table.data.RowData current)
throws Exception
OverWindowFrameprocess 在接口中 OverWindowFrameExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.