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 Details

    • Tumble

      public Tumble()
  • Method Details

    • 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