public class EmptyFlattenAsCreateFactory<T> extends java.lang.Object implements PTransformOverrideFactory<PCollectionList<T>,PCollection<T>,Flatten.PCollections<T>>
PTransformOverrideFactory
that provides an empty Create
to replace a Flatten.PCollections
that takes no input PCollections
.PTransformOverrideFactory.PTransformReplacement<InputT extends PInput,OutputT extends POutput>, PTransformOverrideFactory.ReplacementOutput
Modifier and Type | Method and Description |
---|---|
PTransformOverrideFactory.PTransformReplacement<PCollectionList<T>,PCollection<T>> |
getReplacementTransform(AppliedPTransform<PCollectionList<T>,PCollection<T>,Flatten.PCollections<T>> transform)
Returns a
PTransform that produces equivalent output to the provided transform . |
static <T> EmptyFlattenAsCreateFactory<T> |
instance() |
java.util.Map<PCollection<?>,PTransformOverrideFactory.ReplacementOutput> |
mapOutputs(java.util.Map<TupleTag<?>,PCollection<?>> outputs,
PCollection<T> newOutput)
Returns a
Map from the expanded values in newOutput to the values produced by
the original transform. |
public static <T> EmptyFlattenAsCreateFactory<T> instance()
public PTransformOverrideFactory.PTransformReplacement<PCollectionList<T>,PCollection<T>> getReplacementTransform(AppliedPTransform<PCollectionList<T>,PCollection<T>,Flatten.PCollections<T>> transform)
PTransformOverrideFactory
PTransform
that produces equivalent output to the provided transform
.getReplacementTransform
in interface PTransformOverrideFactory<PCollectionList<T>,PCollection<T>,Flatten.PCollections<T>>
public java.util.Map<PCollection<?>,PTransformOverrideFactory.ReplacementOutput> mapOutputs(java.util.Map<TupleTag<?>,PCollection<?>> outputs, PCollection<T> newOutput)
PTransformOverrideFactory
Map
from the expanded values in newOutput
to the values produced by
the original transform.mapOutputs
in interface PTransformOverrideFactory<PCollectionList<T>,PCollection<T>,Flatten.PCollections<T>>