beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "huangxiaofeng (JIRA)" <>
Subject [jira] [Created] (BEAM-1905) ParDoTranslation should translate a ParDo more simple?
Date Fri, 07 Apr 2017 09:42:41 GMT
huangxiaofeng created BEAM-1905:

             Summary: ParDoTranslation should translate a ParDo more simple?
                 Key: BEAM-1905
             Project: Beam
          Issue Type: Improvement
          Components: runner-flink
            Reporter: huangxiaofeng
            Assignee: Aljoscha Krettek

now, each Pardo will translate to parDoOperate + select(tag) + flatmap, even if it do'st have
sidelnput, and it just have one output.
it will make the transformations more complicated.

for (TaggedPValue output : outputs) {
        final int outputTag = tagsToLabels.get(output.getTag());

        TypeInformation outputTypeInfo = context.getTypeInfo((PCollection<?>) output.getValue());

        DataStream unwrapped =
          .flatMap(new FlatMapFunction<RawUnionValue, Object>() {
            public void flatMap(RawUnionValue value, Collector<Object> out) throws Exception

        context.setOutputDataStream(output.getValue(), unwrapped);

This message was sent by Atlassian JIRA

View raw message