[ https://issues.apache.org/jira/browse/BEAM-4056?focusedWorklogId=91043&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-91043 ]
ASF GitHub Bot logged work on BEAM-4056: ---------------------------------------- Author: ASF GitHub Bot Created on: 14/Apr/18 01:30 Start Date: 14/Apr/18 01:30 Worklog Time Spent: 10m Work Description: bsidhom commented on a change in pull request #5118: [BEAM-4056] Identify side inputs by transform id and local name URL: https://github.com/apache/beam/pull/5118#discussion_r181537077 ########## File path: runners/core-construction-java/src/main/java/org/apache/beam/runners/core/construction/graph/SideInputReference.java ########## @@ -0,0 +1,61 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.beam.runners.core.construction.graph; + +import com.google.auto.value.AutoValue; +import org.apache.beam.model.pipeline.v1.RunnerApi; +import org.apache.beam.model.pipeline.v1.RunnerApi.ExecutableStagePayload.SideInputId; +import org.apache.beam.model.pipeline.v1.RunnerApi.PCollection; +import org.apache.beam.model.pipeline.v1.RunnerApi.PTransform; +import org.apache.beam.runners.core.construction.graph.PipelineNode.PCollectionNode; +import org.apache.beam.runners.core.construction.graph.PipelineNode.PTransformNode; + +/** + * A reference to a side input. This includes the PTransform that references the side input as well + * as the PCollection referenced. Both are necessary in order to fully resolve a view. + */ +@AutoValue +public abstract class SideInputReference { + + /** Create a side input reference. */ + public static SideInputReference of(PTransformNode transform, String localName, Review comment: Changed. Let me know if this is any better. I'm sad that there's no Beam auto-formatter. 😠---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 91043) Time Spent: 2h (was: 1h 50m) > Identify Side Inputs by PTransform ID and local name > ---------------------------------------------------- > > Key: BEAM-4056 > URL: https://issues.apache.org/jira/browse/BEAM-4056 > Project: Beam > Issue Type: New Feature > Components: runner-core > Reporter: Ben Sidhom > Assignee: Ben Sidhom > Priority: Minor > Time Spent: 2h > Remaining Estimate: 0h > > This is necessary in order to correctly identify side inputs during all > phases of portable pipeline execution (fusion, translation, and SDK > execution). -- This message was sent by Atlassian JIRA (v7.6.3#76005)