@Internal @Experimental(value=CORE_RUNNERS_ONLY) public interface PTransformOverrideFactory<InputT extends PInput,OutputT extends POutput,TransformT extends PTransform<? super InputT,OutputT>>
Produces PipelineRunner
-specific overrides of PTransforms
, and
provides mappings between original and replacement outputs.
Modifier and Type | Interface and Description |
---|---|
static class |
PTransformOverrideFactory.PTransformReplacement<InputT extends PInput,OutputT extends POutput>
A
PTransform that replaces an AppliedPTransform , and the input required to do
so. |
static class |
PTransformOverrideFactory.ReplacementOutput
A mapping between original
TaggedPValue outputs and their replacements. |
Modifier and Type | Method and Description |
---|---|
PTransformOverrideFactory.PTransformReplacement<InputT,OutputT> |
getReplacementTransform(AppliedPTransform<InputT,OutputT,TransformT> transform)
Returns a
PTransform that produces equivalent output to the provided transform . |
java.util.Map<PCollection<?>,PTransformOverrideFactory.ReplacementOutput> |
mapOutputs(java.util.Map<TupleTag<?>,PCollection<?>> outputs,
OutputT newOutput)
Returns a
Map from the expanded values in newOutput to the values produced by
the original transform. |
PTransformOverrideFactory.PTransformReplacement<InputT,OutputT> getReplacementTransform(AppliedPTransform<InputT,OutputT,TransformT> transform)
PTransform
that produces equivalent output to the provided transform
.java.util.Map<PCollection<?>,PTransformOverrideFactory.ReplacementOutput> mapOutputs(java.util.Map<TupleTag<?>,PCollection<?>> outputs, OutputT newOutput)
Map
from the expanded values in newOutput
to the values produced by
the original transform.