[
https://issues.apache.org/jira/browse/FLINK-9959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16559445#comment-16559445
]
Aljoscha Krettek commented on FLINK-9959:
-----------------------------------------
This would be a good change, but unfortunately we cannot change
{{JoinFunction}} because it's a {{@Public}} interface.
We could rework this and use something similar to {{ProcessJoinFunction}},
where the {{Context}} allows accessing additional data.
> JoinFunction should be able to access its Window
> ------------------------------------------------
>
> Key: FLINK-9959
> URL: https://issues.apache.org/jira/browse/FLINK-9959
> Project: Flink
> Issue Type: Improvement
> Components: DataStream API
> Affects Versions: 1.5.1, 1.6.0
> Reporter: Bowen Li
> Assignee: Bowen Li
> Priority: Major
> Fix For: 1.7.0
>
>
> e.g. currently, a windowed join looks like this, and the JoinFunction doesn't
> have access to the Window it runs against.
> {code:java}
> A.join(B)
> .where(...)
> .equalTo(...)
> .window(...)
> .apply(new JoinFunction<IN1, IN2, OUT>() {});
> {code}
> We can give JoinFunction access to its Window as {{JoinFunction<IN1, IN2,
> OUT, Window>}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)