Package org.apache.beam.sdk.runners
Interface PTransformOverrideFactory<InputT extends PInput,OutputT extends POutput,TransformT extends PTransform<? super InputT,OutputT>>
-
@Internal @Experimental(CORE_RUNNERS_ONLY) public interface PTransformOverrideFactory<InputT extends PInput,OutputT extends POutput,TransformT extends PTransform<? super InputT,OutputT>>
For internal use only; no backwards-compatibility guarantees.Produces
PipelineRunner
-specific overrides ofPTransforms
, and provides mappings between original and replacement outputs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PTransformOverrideFactory.PTransformReplacement<InputT extends PInput,OutputT extends POutput>
APTransform
that replaces anAppliedPTransform
, and the input required to do so.static class
PTransformOverrideFactory.ReplacementOutput
A mapping between originalTaggedPValue
outputs and their replacements.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PTransformOverrideFactory.PTransformReplacement<InputT,OutputT>
getReplacementTransform(AppliedPTransform<InputT,OutputT,TransformT> transform)
Returns aPTransform
that produces equivalent output to the providedtransform
.java.util.Map<PCollection<?>,PTransformOverrideFactory.ReplacementOutput>
mapOutputs(java.util.Map<TupleTag<?>,PCollection<?>> outputs, OutputT newOutput)
Returns aMap
from the expanded values innewOutput
to the values produced by the original transform.
-
-
-
Method Detail
-
getReplacementTransform
PTransformOverrideFactory.PTransformReplacement<InputT,OutputT> getReplacementTransform(AppliedPTransform<InputT,OutputT,TransformT> transform)
Returns aPTransform
that produces equivalent output to the providedtransform
.
-
mapOutputs
java.util.Map<PCollection<?>,PTransformOverrideFactory.ReplacementOutput> mapOutputs(java.util.Map<TupleTag<?>,PCollection<?>> outputs, OutputT newOutput)
Returns aMap
from the expanded values innewOutput
to the values produced by the original transform.
-
-