java.lang.Object
org.apache.flink.table.runtime.operators.window.Window
org.apache.flink.table.runtime.operators.window.CountWindow
All Implemented Interfaces:
Comparable<Window>

public class CountWindow extends Window
A Window that represents a count window. For each count window, we will assign a unique id. Thus this CountWindow can act as namespace part in state. We can attach data to each different CountWindow.
  • Constructor Details

    • CountWindow

      public CountWindow(long id)
  • Method Details

    • getId

      public long getId()
      Gets the id (0-based) of the window.
    • maxTimestamp

      public long maxTimestamp()
      Description copied from class: Window
      Gets the largest timestamp that still belongs to this window.
      Specified by:
      maxTimestamp in class Window
      Returns:
      The largest timestamp that still belongs to this window.
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class Window
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class Window
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Window o)