ProcessWindowFunction

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ProcessWindowFunction

苗元君
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

Reply | Threaded
Open this post in threaded view
|

Re: ProcessWindowFunction

vino yang
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]


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