I have been thinking about trying to implement using JavaPairRDD<cKey, Value>
instead of JavaRDD<Report>.
Positive
- I can use the native
filter,flatmap,collectetc - May be more efficient to use the methods above compared to mine
- Better scaling
Negative
- Will need more memory (will probably be a lot more rows.) This probably wont matter since we are using tools from BigData
- Don't know how, or if, I can return multiple
JavaPairRDDs from the simulationmap. Probably wont work as I want it to.
Other
- Could it work with the
StreamAPIin Flink? DataSet/DataFrame?- Maybe even
JavaPairRDD<String, Tuple2<cKey, Value>>?