[
https://issues.apache.org/jira/browse/FLINK-7635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16179048#comment-16179048
]
ASF GitHub Bot commented on FLINK-7635:
---------------------------------------
Github user aljoscha commented on the issue:
https://github.com/apache/flink/pull/4702
I merged this, excellent work! 👍
The Scala API has its own `OutputTag` because it allows us to use a Scala
feature called context bounds. The signature of the Scala `OutputTag` is
```
class OutputTag[T: TypeInformation](
id: String) extends JOutputTag[T](id, implicitly[TypeInformation[T]])
```
the `T: TypeInformation` part tells the compiler to make an object of type
`TypeInformation[T]` implicitly available. We use this to hook into the
compiler (using a feature called Scala Macros) to generate the
`TypeInformation` for `T`. You'll notice that in Java, when specifying an
`OutputTag` you have to make it an anonymous inner class. This is because we
can only analyse proper subclasses using the `TypeExtractor` in Java.
Could you please close the PR?
> Support sideOutput in ProcessWindowFunciton
> -------------------------------------------
>
> Key: FLINK-7635
> URL: https://issues.apache.org/jira/browse/FLINK-7635
> Project: Flink
> Issue Type: Improvement
> Components: DataStream API, Scala API
> Reporter: Chen Qin
> Assignee: Bowen Li
> Fix For: 1.4.0
>
>
> [FLINK-4460|https://issues.apache.org/jira/browse/FLINK-4460] only
> implemented output to ProcessFunction Context. It would be nice to add
> support to ProcessWindow and ProcessAllWindow functions as well. [email
> threads|http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/question-on-sideoutput-from-ProcessWindow-function-td15500.html]
> [~aljoscha] I thought this is good warm up task for ppl to learn how window
> function works in general. Otherwise feel free to assign back to me.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)