Class 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 Detail

      • Tumble

        public Tumble()
    • 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