Hi team, any suggestions on below topic?
I have a requirement that wants to output two different values from a time window reduce function. Here is basic workflow 1. fetch data from Kafka 2. flow the data to a event session window. kafka source -> keyBy -> session window -> reduce 3. inside the reduce function, count the number of data and also emit the data itself to another operator for further processing As the reduce function can only emit the count, I want to know how to also emit the data as well? On Sat, 7 Jan 2017 at 20:30 tao xiao <xiaotao...@gmail.com> wrote: > Hi team, > > I have a requirement that wants to output two different values from a time > window reduce function. Here is basic workflow > > 1. fetch data from Kafka > 2. flow the data to a event session window. kafka source -> keyBy -> > session window -> reduce > 3. inside the reduce function, count the number of data and also emit the > data itself to another operator for further processing > > As the reduce function can only emit the count, I want to know how to also > emit the data as well? > >