Assuming the following pipeline:
input.filter(new RichFilterFunction<MyPojo>() {
@Override
public boolean filter(MyPojo value) throws Exception {
return false;
}
});
How many instances of the above rich function will be created?
There will always be as many instances as the parallelism indicates. There are two reasons related to state for that: