Class WatermarkSpec

java.lang.Object
org.apache.flink.table.legacy.api.WatermarkSpec

@Deprecated @Internal public class WatermarkSpec extends Object
Deprecated.
Watermark metadata defined in TableSchema. It mainly contains 3 parts:
  1. the rowtime attribute.
  2. the string representation of watermark generation expression.
  3. the data type of the computation result of watermark generation expression.
  • Constructor Details

    • WatermarkSpec

      public WatermarkSpec(String rowtimeAttribute, String watermarkExpressionString, DataType watermarkExprOutputType)
      Deprecated.
  • Method Details

    • getRowtimeAttribute

      public String getRowtimeAttribute()
      Deprecated.
      Returns the name of rowtime attribute, it can be a nested field using dot separator. The referenced attribute must be present in the TableSchema and of type LogicalTypeRoot.TIMESTAMP_WITHOUT_TIME_ZONE.
    • getWatermarkExpr

      public String getWatermarkExpr()
      Deprecated.
      Returns the string representation of watermark generation expression. The string representation is a qualified SQL expression string (UDFs are expanded).
    • getWatermarkExprOutputType

      public DataType getWatermarkExprOutputType()
      Deprecated.
      Returns the data type of the computation result of watermark generation expression.
    • asSummaryString

      public String asSummaryString()
      Deprecated.
    • equals

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

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object