public class TransformHierarchy.Node
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addComposite(TransformHierarchy.Node node)
Adds a composite operation to the transform node.
|
TransformHierarchy.Node |
getEnclosingNode()
Returns the enclosing composite transform node, or null if there is none.
|
java.lang.String |
getFullName() |
java.util.Map<TupleTag<?>,PCollection<?>> |
getInputs()
Returns the transform input, in fully expanded form.
|
java.util.Map<TupleTag<?>,PCollection<?>> |
getOutputs()
Returns the transform output, in expanded form.
|
@Nullable PTransform<?,?> |
getTransform()
Returns the transform associated with this transform node.
|
boolean |
isCompositeNode()
Returns true if this node represents a composite transform that does not perform processing
of its own, but merely encapsulates a sub-pipeline (which may be empty).
|
boolean |
isRootNode() |
void |
replaceChild(TransformHierarchy.Node existing,
TransformHierarchy.Node replacement)
Replace a sub-node of this transform node.
|
AppliedPTransform<?,?,?> |
toAppliedPTransform(Pipeline pipeline)
Returns the
AppliedPTransform representing this TransformHierarchy.Node . |
java.lang.String |
toString() |
public @Nullable PTransform<?,?> getTransform()
null
if and only if this is the root node of the graph, which has no
associated transformpublic TransformHierarchy.Node getEnclosingNode()
public void addComposite(TransformHierarchy.Node node)
As soon as a node is added, the transform node is considered a composite operation instead of a primitive transform.
public void replaceChild(TransformHierarchy.Node existing, TransformHierarchy.Node replacement)
The existing TransformHierarchy.Node
must be a direct child of this TransformHierarchy.Node
. The replacement
node need not be fully specified.
public boolean isCompositeNode()
Note that a node may be composite with no sub-transforms if it returns its input directly extracts a component of a tuple, or other operations that occur at pipeline assembly time.
public boolean isRootNode()
public java.lang.String getFullName()
public java.util.Map<TupleTag<?>,PCollection<?>> getInputs()
public java.util.Map<TupleTag<?>,PCollection<?>> getOutputs()
public AppliedPTransform<?,?,?> toAppliedPTransform(Pipeline pipeline)
AppliedPTransform
representing this TransformHierarchy.Node
.public java.lang.String toString()
toString
in class java.lang.Object