Class RangeSlidingOverFrame
java.lang.Object
org.apache.flink.table.runtime.operators.over.frame.SlidingOverFrame
org.apache.flink.table.runtime.operators.over.frame.RangeSlidingOverFrame
- All Implemented Interfaces:
Serializable,OverWindowFrame
The range sliding window frame calculates frames with the following SQL form: ... RANGE 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 ROW
e.g.: ... RANGE BETWEEN 1 PRECEDING AND 1 FOLLOWING.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRangeSlidingOverFrame(org.apache.flink.table.types.logical.RowType inputType, org.apache.flink.table.types.logical.RowType valueType, GeneratedAggsHandleFunction aggsHandleFunction, GeneratedRecordComparator lboundComparator, GeneratedRecordComparator rboundComparator) -
Method Summary
Modifier and TypeMethodDescriptionvoidopen(ExecutionContext ctx) Open to init withExecutionContext.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
prepare
-
Constructor Details
-
RangeSlidingOverFrame
public RangeSlidingOverFrame(org.apache.flink.table.types.logical.RowType inputType, org.apache.flink.table.types.logical.RowType valueType, GeneratedAggsHandleFunction aggsHandleFunction, GeneratedRecordComparator lboundComparator, GeneratedRecordComparator rboundComparator) - Parameters:
lboundComparator- comparator used to identify the lower bound of an output row.rboundComparator- comparator used to identify the upper bound of an output row.
-
-
Method Details
-
open
Description copied from interface:OverWindowFrameOpen to init withExecutionContext.- Specified by:
openin interfaceOverWindowFrame- Overrides:
openin classSlidingOverFrame- 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.- Throws:
Exception
-