Class WindowKey

java.lang.Object
org.apache.flink.table.runtime.util.WindowKey

public final class WindowKey extends Object
The WindowKey structure represents a combination of key and window. This is mainly used in the mini-batch window operators and window is identified by window end timestamp.
  • Constructor Summary

    Constructors
    Constructor
    Description
    WindowKey(long window, org.apache.flink.table.data.RowData key)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.apache.flink.table.data.RowData
     
    long
     
    int
     
    replace(long window, org.apache.flink.table.data.RowData key)
    Replace the currently stored key and window by the given new key and new window.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WindowKey

      public WindowKey(long window, org.apache.flink.table.data.RowData key)
  • Method Details

    • replace

      public WindowKey replace(long window, org.apache.flink.table.data.RowData key)
      Replace the currently stored key and window by the given new key and new window.
    • getWindow

      public long getWindow()
    • getKey

      public org.apache.flink.table.data.RowData getKey()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object