Skip to content

Commit

Permalink
fixup! Provide local tags in PInput, POutput expansions
Browse files Browse the repository at this point in the history
  • Loading branch information
tgroh committed Dec 12, 2016
1 parent ce96405 commit 829ec2f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Expand Up @@ -80,7 +80,9 @@ public void leaveCompositeTransform(TransformHierarchy.Node node) {

@Override
public void visitPrimitiveTransform(TransformHierarchy.Node node) {
toFinalize.removeAll(node.getInputs());
for (TaggedPValue consumed : node.getInputs()) {
toFinalize.remove(consumed.getValue());
}
AppliedPTransform<?, ?, ?> appliedTransform = getAppliedTransform(node);
stepNames.put(appliedTransform, genStepName());
if (node.getInputs().isEmpty()) {
Expand Down
Expand Up @@ -17,6 +17,7 @@
*/
package org.apache.beam.sdk.values;

import java.util.List;
import org.apache.beam.sdk.transforms.AppliedPTransform;
import org.apache.beam.sdk.transforms.PTransform;

Expand All @@ -36,4 +37,13 @@ public interface PValue extends POutput, PInput {
* <p>For internal use only.
*/
AppliedPTransform<?, ?, ?> getProducingTransformInternal();

/**
* {@inheritDoc}.
*
* <p>A {@link PValue} always expands into itself. Calling {@link #expand()} on a PValue is almost
* never appropriate.
*/
@Deprecated
List<TaggedPValue> expand();
}

0 comments on commit 829ec2f

Please sign in to comment.