public static class SparkRunner.Evaluator extends Pipeline.PipelineVisitor.Defaults
Pipeline.PipelineVisitor.CompositeBehavior, Pipeline.PipelineVisitor.Defaults
Modifier and Type | Field and Description |
---|---|
protected org.apache.beam.runners.spark.translation.EvaluationContext |
ctxt |
protected org.apache.beam.runners.spark.translation.SparkPipelineTranslator |
translator |
Constructor and Description |
---|
Evaluator(org.apache.beam.runners.spark.translation.SparkPipelineTranslator translator,
org.apache.beam.runners.spark.translation.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<PValue> 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,
java.lang.Class<TransformT> transformClass)
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 org.apache.beam.runners.spark.translation.EvaluationContext ctxt
protected final org.apache.beam.runners.spark.translation.SparkPipelineTranslator translator
public Evaluator(org.apache.beam.runners.spark.translation.SparkPipelineTranslator translator, org.apache.beam.runners.spark.translation.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>> org.apache.beam.runners.spark.translation.TransformEvaluator<TransformT> translate(org.apache.beam.sdk.runners.TransformHierarchy.Node node, TransformT transform, java.lang.Class<TransformT> transformClass)
protected PCollection.IsBounded isBoundedCollection(java.util.Collection<PValue> pValues)