Package org.apache.flink.table.api
Class Tumble
java.lang.Object
org.apache.flink.table.api.Tumble
Helper class for creating a tumbling window. Tumbling windows are consecutive, non-overlapping
windows of a specified fixed length. For example, a tumbling window of 5 minutes size groups
elements in 5 minutes intervals.
Java Example:
Tumble.over("10.minutes").on("rowtime").as("w")
Scala Example:
Tumble over 5.minutes on 'rowtime as 'w
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TumbleWithSizeover(org.apache.flink.table.expressions.Expression size) Creates a tumbling window.
-
Constructor Details
-
Tumble
public Tumble()
-
-
Method Details
-
over
Creates a tumbling window. Tumbling windows are fixed-size, consecutive, non-overlapping windows of a specified fixed length. For example, a tumbling window of 5 minutes size groups elements in 5 minutes intervals.- Parameters:
size- the size of the window as time or row-count interval.- Returns:
- a partially defined tumbling window
-