I have a SingleOutputStreamOperator<ObjectA>
objAStream and need to sink only the List<ObjectB>
list objects which are in ObjectA
stream in to kafka.
public class ObjectA {
public int id;
public List<ObjectB> objBList;
public ObjectA() {
}
}
SingleOutputStreamOperator<ObjectA> objAStream = someStream.map(new SomeMapper());
//required to sink only the member `ObjectB` objects in `objAStream` ObjectA
I'm new to flink and will it be possible to do it using FlapMap or any other way. Kindly give your comments.