You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Till Rohrmann (Jira)" <ji...@apache.org> on 2020/11/13 16:08:00 UTC
[jira] [Created] (FLINK-20156) JavaDocs of
WatermarkStrategy.withTimestampAssigner are wrong wrt Java 8
Till Rohrmann created FLINK-20156:
-------------------------------------
Summary: JavaDocs of WatermarkStrategy.withTimestampAssigner are wrong wrt Java 8
Key: FLINK-20156
URL: https://issues.apache.org/jira/browse/FLINK-20156
Project: Flink
Issue Type: Improvement
Components: API / DataStream, Documentation
Affects Versions: 1.11.2, 1.12.0
Reporter: Till Rohrmann
Fix For: 1.12.0, 1.11.3
According to the JavaDocs of {{WatermarkStrategy.withTimestampAssigner}} one can define a watermark strategy with the following code:
{code}
WatermarkStrategy<CustomObject> wmStrategy = WatermarkStrategy
.forMonotonousTimestamps()
.withTimestampAssigner((event, timestamp) -> event.getTimestamp());
{code}
However because of https://e.printstacktrace.blog/java-type-inference-generic-methods-chain-call/, this won't compile.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)