public static class SparkRunner.Evaluator extends Pipeline.PipelineVisitor.Defaults
Pipeline.PipelineVisitor.CompositeBehavior, Pipeline.PipelineVisitor.Defaults
Modifier and Type | Field and Description |
---|---|
protected EvaluationContext |
ctxt |
protected SparkPipelineTranslator |
translator |
Constructor and Description |
---|
Evaluator(SparkPipelineTranslator translator,
EvaluationContext ctxt) |
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.
|
protected PCollection.IsBounded |
isBoundedCollection(java.util.Collection<PCollection<?>> pValues) |
protected boolean |
shouldDefer(org.apache.beam.sdk.runners.TransformHierarchy.Node node) |
protected <TransformT extends PTransform<? super PInput,POutput>> |
translate(org.apache.beam.sdk.runners.TransformHierarchy.Node node,
TransformT transform)
Determine if this Node belongs to a Bounded branch of the pipeline, or Unbounded, and
translate with the proper translator.
|
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.
|
enterPipeline, getPipeline, leaveCompositeTransform, leavePipeline, visitValue
protected final EvaluationContext ctxt
protected final SparkPipelineTranslator translator
public Evaluator(SparkPipelineTranslator translator, EvaluationContext ctxt)
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
enterCompositeTransform
in class Pipeline.PipelineVisitor.Defaults
protected boolean shouldDefer(org.apache.beam.sdk.runners.TransformHierarchy.Node node)
public void visitPrimitiveTransform(org.apache.beam.sdk.runners.TransformHierarchy.Node node)
Pipeline.PipelineVisitor
visitPrimitiveTransform
in interface Pipeline.PipelineVisitor
visitPrimitiveTransform
in class Pipeline.PipelineVisitor.Defaults
protected <TransformT extends PTransform<? super PInput,POutput>> <any> translate(org.apache.beam.sdk.runners.TransformHierarchy.Node node, TransformT transform)
protected PCollection.IsBounded isBoundedCollection(java.util.Collection<PCollection<?>> pValues)