Class RowSlidingOverFrame
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.over.frame.SlidingOverFrame
-
- org.apache.flink.table.runtime.operators.over.frame.RowSlidingOverFrame
-
- All Implemented Interfaces:
Serializable,OverWindowFrame
public class RowSlidingOverFrame extends SlidingOverFrame
The row sliding window frame calculates frames with the following SQL form: ... ROW BETWEEN [window frame preceding] AND [window frame following] [window frame preceding] ::= [unsigned_value_specification] PRECEDING | CURRENT ROW [window frame following] ::= [unsigned_value_specification] FOLLOWING | CURRENT ROWe.g.: ... ROW BETWEEN 1 PRECEDING AND 1 FOLLOWING.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RowSlidingOverFrame(org.apache.flink.table.types.logical.RowType inputType, org.apache.flink.table.types.logical.RowType valueType, GeneratedAggsHandleFunction aggsHandleFunction, long leftBound, long rightBound)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class org.apache.flink.table.runtime.operators.over.frame.SlidingOverFrame
open
-
-
-
-
Constructor Detail
-
RowSlidingOverFrame
public RowSlidingOverFrame(org.apache.flink.table.types.logical.RowType inputType, org.apache.flink.table.types.logical.RowType valueType, GeneratedAggsHandleFunction aggsHandleFunction, long leftBound, long rightBound)
-
-
Method Detail
-
prepare
public void prepare(ResettableExternalBuffer rows) throws Exception
Description copied from interface:OverWindowFramePrepare for next partition.- Specified by:
preparein interfaceOverWindowFrame- Overrides:
preparein classSlidingOverFrame- 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.- Throws:
Exception
-
-