‘getCurrentWatermark()‘ in ‘Anonymous class derived from xxx
部分代碼如下:
@Override
public Watermark getCurrentWatermark() {
? ? currentWaterMark = currentTimeStamp - maxDelayAllowed;
? ? return new Watermark(currentWaterMark);
}
intellij出現了這么個問題:
'getCurrentWatermark()' in 'Anonymous class derived from org.apache.flink.streaming.api.functions.AssignerWithPeriodicWatermarks' clashes with 'getCurrentWatermark()' in 'org.apache.flink.streaming.api.functions.AssignerWithPeriodicWatermarks'; attempting to use incompatible return type
解決方案如下:
import org.apache.flink.streaming.api.watermark.Watermark;
改成:
import org.apache.flink.api.common.eventtime.Watermark;
?
總結
以上是生活随笔為你收集整理的‘getCurrentWatermark()‘ in ‘Anonymous class derived from xxx的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: windows10在欢迎界面进不去怎么办
- 下一篇: 网站权重是SEO优化网站中最常用的词之一