Class OffsetOverFrame
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.over.frame.OffsetOverFrame
-
- All Implemented Interfaces:
Serializable,OverWindowFrame
public class OffsetOverFrame extends Object implements OverWindowFrame
The offset window frame calculates frames containing LEAD/LAG statements.See
LeadLagAggFunction.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOffsetOverFrame.CalcOffsetFuncCalc offset from base row.
-
Constructor Summary
Constructors Constructor Description OffsetOverFrame(GeneratedAggsHandleFunction aggsHandleFunction, Long offset, OffsetOverFrame.CalcOffsetFunc calcOffsetFunc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidopen(ExecutionContext ctx)Open to init withExecutionContext.voidprepare(ResettableExternalBuffer rows)Prepare 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 Detail
-
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 Detail
-
open
public void open(ExecutionContext ctx) throws Exception
Description copied from interface:OverWindowFrameOpen to init withExecutionContext.- Specified by:
openin interfaceOverWindowFrame- Throws:
Exception
-
prepare
public void prepare(ResettableExternalBuffer rows) throws Exception
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 ExceptionDescription copied from interface:OverWindowFramereturn the ACC of the window frame.- Specified by:
processin interfaceOverWindowFrame- Throws:
Exception
-
-