Class OffsetOverFrame
java.lang.Object
org.apache.flink.table.runtime.operators.over.frame.OffsetOverFrame
- All Implemented Interfaces:
Serializable,OverWindowFrame
The offset window frame calculates frames containing LEAD/LAG statements.
See LeadLagAggFunction.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCalc offset from base row. -
Constructor Summary
ConstructorsConstructorDescriptionOffsetOverFrame(GeneratedAggsHandleFunction aggsHandleFunction, Long offset, OffsetOverFrame.CalcOffsetFunc calcOffsetFunc) -
Method Summary
Modifier and TypeMethodDescriptionvoidopen(ExecutionContext ctx) Open to init withExecutionContext.voidPrepare for next partition.org.apache.flink.table.data.RowDataprocess(int index, org.apache.flink.table.data.RowData current) return the ACC of the window frame.
-
Constructor Details
-
OffsetOverFrame
public OffsetOverFrame(GeneratedAggsHandleFunction aggsHandleFunction, Long offset, OffsetOverFrame.CalcOffsetFunc calcOffsetFunc) - Parameters:
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.
-
-
Method Details
-
open
Description copied from interface:OverWindowFrameOpen to init withExecutionContext.- Specified by:
openin interfaceOverWindowFrame- Throws:
Exception
-
prepare
Description copied from interface:OverWindowFramePrepare for next partition.- Specified by:
preparein interfaceOverWindowFrame- Throws:
Exception
-
process
public org.apache.flink.table.data.RowData process(int index, org.apache.flink.table.data.RowData current) throws Exception Description copied from interface:OverWindowFramereturn the ACC of the window frame.- Specified by:
processin interfaceOverWindowFrame- Throws:
Exception
-