replacing WindowFunction with AggregateFunction

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

replacing WindowFunction with AggregateFunction

Nicos Maris
Hi,


I am replacing replacing my legacy WindowFunction with AggregateFunction.

I use TumblingEventTimeWindows, how can I get the start and end time?
Reply | Threaded
Open this post in threaded view
|

Re: replacing WindowFunction with AggregateFunction

Nicos Maris
This seams to be the way to go but I get "cannot resolve method" at the method 'aggregate'.

My aggregareFunction implements the following:

AggregateFunction<
IngressPOJO,
CountersAccumulator,
CountersAccumulator
>
And my processWindowFunction implements the following:

ProcessWindowFunction<
CountersAccumulator,
Tuple2<String, CountersAccumulator>,
String,
TimeWindow
>

On Sun, Sep 9, 2018 at 4:40 AM Nicos Maris <[hidden email]> wrote:
Hi,


I am replacing replacing my legacy WindowFunction with AggregateFunction.

I use TumblingEventTimeWindows, how can I get the start and end time?
Reply | Threaded
Open this post in threaded view
|

Re: replacing WindowFunction with AggregateFunction

Hequn Cheng

On Sun, Sep 9, 2018 at 10:03 AM Nicos Maris <[hidden email]> wrote:
This seams to be the way to go but I get "cannot resolve method" at the method 'aggregate'.

My aggregareFunction implements the following:

AggregateFunction<
IngressPOJO,
CountersAccumulator,
CountersAccumulator
>
And my processWindowFunction implements the following:

ProcessWindowFunction<
CountersAccumulator,
Tuple2<String, CountersAccumulator>,
String,
TimeWindow
>

On Sun, Sep 9, 2018 at 4:40 AM Nicos Maris <[hidden email]> wrote:
Hi,


I am replacing replacing my legacy WindowFunction with AggregateFunction.

I use TumblingEventTimeWindows, how can I get the start and end time?