[ 
https://issues.apache.org/jira/browse/BEAM-656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ismaël Mejía reassigned BEAM-656:
---------------------------------

    Assignee:     (was: James Malone)

> Add support for side inputs/outputs to Java 8 lambdas in MapElements
> --------------------------------------------------------------------
>
>                 Key: BEAM-656
>                 URL: https://issues.apache.org/jira/browse/BEAM-656
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-ideas
>            Reporter: Jani Patokallio
>            Priority: Minor
>
> 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:
> {code:java}
> PCollection<Integer> wordLengths = words.apply(
>     MapElements.via((String word) -> {
>       int sideInput1= [[[ GetSideInputHere(); ]]]
>       [[[ SetSideOutputHere ]]] (sideInput1+word.length());
>       return word.length();
>     }).withOutputType(new TypeDescriptor<Integer>() {});
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to