You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (JIRA)" <ji...@apache.org> on 2018/07/31 08:26:00 UTC

[jira] [Commented] (FLINK-10000) There's a mistake in the comments of CoGroupedStreams.java

    [ https://issues.apache.org/jira/browse/FLINK-10000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16563294#comment-16563294 ] 

Timo Walther commented on FLINK-10000:
--------------------------------------

Thanks [~dangdangdang] for opening issue FLINK-10000 ;-)

> There's a mistake in the comments of CoGroupedStreams.java
> ----------------------------------------------------------
>
>                 Key: FLINK-10000
>                 URL: https://issues.apache.org/jira/browse/FLINK-10000
>             Project: Flink
>          Issue Type: Improvement
>          Components: DataStream API
>            Reporter: Shimin Yang
>            Assignee: Shimin Yang
>            Priority: Minor
>
> The example of CoGroupedStream 
>   * DataStream<T> result = one.coGroup(two)
>  *     .where(new MyFirstKeySelector())
>  *     .equalTo(new MyFirstKeySelector())
>  *     .window(TumblingEventTimeWindows.of(Time.of(5, TimeUnit.SECONDS)))
>  *     .apply(new MyCoGroupFunction());
>  * } </pre>
> the params of method equalTo should be MySecondKeySelector instead of MyFirstKeySelector.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)