public static class Pipeline.PipelineVisitor.Defaults extends java.lang.Object implements Pipeline.PipelineVisitor
Pipeline.PipelineVisitor
that enters all composite transforms.
User implementations can override just those methods they are interested in.Pipeline.PipelineVisitor.CompositeBehavior, Pipeline.PipelineVisitor.Defaults
Constructor and Description |
---|
Defaults() |
Modifier and Type | Method and Description |
---|---|
Pipeline.PipelineVisitor.CompositeBehavior |
enterCompositeTransform(org.apache.beam.sdk.runners.TransformHierarchy.Node node)
Called for each composite transform after all topological predecessors have been visited but
before any of its component transforms.
|
void |
enterPipeline(Pipeline pipeline)
Called before visiting anything values or transforms, as many uses of a visitor require
access to the
Pipeline object itself. |
protected Pipeline |
getPipeline() |
void |
leaveCompositeTransform(org.apache.beam.sdk.runners.TransformHierarchy.Node node)
Called for each composite transform after all of its component transforms and their outputs
have been visited.
|
void |
leavePipeline(Pipeline pipeline)
Called when all values and transforms in a
Pipeline have been visited. |
void |
visitPrimitiveTransform(org.apache.beam.sdk.runners.TransformHierarchy.Node node)
Called for each primitive transform after all of its topological predecessors
and inputs have been visited.
|
void |
visitValue(PValue value,
org.apache.beam.sdk.runners.TransformHierarchy.Node producer)
Called for each value after the transform that produced the value has been
visited.
|
protected Pipeline getPipeline()
public void enterPipeline(Pipeline pipeline)
Pipeline.PipelineVisitor
Pipeline
object itself.enterPipeline
in interface Pipeline.PipelineVisitor
public Pipeline.PipelineVisitor.CompositeBehavior enterCompositeTransform(org.apache.beam.sdk.runners.TransformHierarchy.Node node)
Pipeline.PipelineVisitor
The return value controls whether or not child transforms are visited.
enterCompositeTransform
in interface Pipeline.PipelineVisitor
public void leaveCompositeTransform(org.apache.beam.sdk.runners.TransformHierarchy.Node node)
Pipeline.PipelineVisitor
leaveCompositeTransform
in interface Pipeline.PipelineVisitor
public void visitPrimitiveTransform(org.apache.beam.sdk.runners.TransformHierarchy.Node node)
Pipeline.PipelineVisitor
visitPrimitiveTransform
in interface Pipeline.PipelineVisitor
public void visitValue(PValue value, org.apache.beam.sdk.runners.TransformHierarchy.Node producer)
Pipeline.PipelineVisitor
visitValue
in interface Pipeline.PipelineVisitor
public void leavePipeline(Pipeline pipeline)
Pipeline.PipelineVisitor
Pipeline
have been visited.leavePipeline
in interface Pipeline.PipelineVisitor