Package org.apache.flink.table.catalog
Class WatermarkSpec
- java.lang.Object
-
- org.apache.flink.table.catalog.WatermarkSpec
-
@PublicEvolving public final class WatermarkSpec extends Object
Representation of a watermark specification in aResolvedSchema
.It defines the rowtime attribute and a
ResolvedExpression
for watermark generation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asSummaryString()
boolean
equals(Object o)
String
getRowtimeAttribute()
Returns the name of a rowtime attribute.ResolvedExpression
getWatermarkExpression()
Returns theResolvedExpression
for watermark generation.int
hashCode()
static WatermarkSpec
of(String rowtimeAttribute, ResolvedExpression watermarkExpression)
String
toString()
-
-
-
Method Detail
-
of
public static WatermarkSpec of(String rowtimeAttribute, ResolvedExpression watermarkExpression)
-
getRowtimeAttribute
public String getRowtimeAttribute()
Returns the name of a rowtime attribute.The referenced attribute must be present in the
ResolvedSchema
and must be ofTimestampType
.
-
getWatermarkExpression
public ResolvedExpression getWatermarkExpression()
Returns theResolvedExpression
for watermark generation.
-
asSummaryString
public String asSummaryString()
-
-