@PublicEvolving public final class WatermarkSpec extends Object
ResolvedSchema
.
It defines the rowtime attribute and a ResolvedExpression
for watermark generation.
Modifier and Type | Method and Description |
---|---|
String |
asSummaryString() |
boolean |
equals(Object o) |
String |
getRowtimeAttribute()
Returns the name of a rowtime attribute.
|
ResolvedExpression |
getWatermarkExpression()
Returns the
ResolvedExpression for watermark generation. |
int |
hashCode() |
static WatermarkSpec |
of(String rowtimeAttribute,
ResolvedExpression watermarkExpression) |
String |
toString() |
public static WatermarkSpec of(String rowtimeAttribute, ResolvedExpression watermarkExpression)
public String getRowtimeAttribute()
The referenced attribute must be present in the ResolvedSchema
and must be of
TimestampType
.
public ResolvedExpression getWatermarkExpression()
ResolvedExpression
for watermark generation.public String asSummaryString()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.