flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmetzger <...@git.apache.org>
Subject [GitHub] incubator-flink pull request: Reflect recent changes to Java API d...
Date Thu, 31 Jul 2014 19:46:02 GMT
Github user rmetzger commented on a diff in the pull request:

    --- Diff: docs/java_api_transformations.md ---
    @@ -431,6 +435,30 @@ DataSet<Tuple2<String, Double>>
                        .with(new PointWeighter());
    +#### Join with FlatJoinFunction
    +Analogous to Map and FlatMap, a FlatJoin function behaves in the same
    +way as a JoinFunction, but instead of returning one element, it can
    +return (collect), zero, one, or more elements
    +{% highlight java %}
    +public class PointWeighter
    +         implements FlatJoinFunction<Rating, Tuple2<String, Double>, Tuple2<String,
Double>> {
    +  @Override
    +  public void join(Rating rating, Tuple2<String, Double> weight,
    +	  Collector<Tuple2<String, Double>> out) {
    --- End diff --
    This empty line is a bit ugly

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message