https://www.cnblogs.com/Springmoon-venn/p/14551983.html
watermark的时间两种方式:
https://blog.csdn.net/lvwenyuan_1/article/details/91389124
如果是process-time则一定要设置 setAutoWatermarkInterval,
getConfig().setAutoWatermarkInterval(200);
而event-time会自动设置 getConfig().setAutoWatermarkInterval(200);。
@PublicEvolving
public void setStreamTimeCharacteristic(TimeCharacteristic characteristic) {
this.timeCharacteristic = Preconditions.checkNotNull(characteristic);
if (characteristic == TimeCharacteristic.ProcessingTime) {
getConfig().setAutoWatermarkInterval(0);
} else {
getConfig().setAutoWatermarkInterval(200);
}
}