Package org.apache.flink.table.api
Class Tumble
- java.lang.Object
-
- org.apache.flink.table.api.Tumble
-
@PublicEvolving public final class Tumble extends Object
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 Constructor Description Tumble()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TumbleWithSize
over(org.apache.flink.table.expressions.Expression size)
Creates a tumbling window.
-
-
-
Method Detail
-
over
public static TumbleWithSize over(org.apache.flink.table.expressions.Expression size)
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
-
-