Re: ProcessWindowFunction

Posted by vino yang on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/ProcessWindowFunction-tp22182p22183.html

Hi yuanjun,

There are very few examples of ProcessWindowFunction, but there are some implementations for testing in Flink's source code for your reference.[1]

[1]: https://github.com/apache/flink/blob/master/flink-streaming-scala/src/test/scala/org/apache/flink/streaming/api/scala/WindowTranslationTest.scala#L192

Thanks, vino.

苗元君 <[hidden email]> 于2018年8月9日周四 上午10:11写道:
I read the doc about ProcessWindowFunction
But I the code on the flink demo is incorrect

public class MyProcessWindowFunction extends ProcessWindowFunction<Tuple<String, Long>, String, String, TimeWindow> {
Tuple cannot have to parameter.
I try to find a demo which ProcessWindowFunction used in window word count demo,
I can not even find a complete correct demo with ProcessWindowFunction.

Can any one show me how to use ProcessWindowFunction in wordcount window function with .process(ProcessWindowFunction) ?

--

Yuanjun Miao