Details
-
Improvement
-
Status: Open
-
P3
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Currently there's no way to use side inputs or outputs within Java 8 lambdas and MapElements. It would be nice if you could do something like this:
PCollection<Integer> wordLengths = words.apply( MapElements.via((String word) -> { int sideInput1= [[[ GetSideInputHere(); ]]] [[[ SetSideOutputHere ]]] (sideInput1+word.length()); return word.length(); }).withOutputType(new TypeDescriptor<Integer>() {});