@FunctionalInterface
public static interface ProtoOverrides.TransformReplacement
Modifier and Type | Method and Description |
---|---|
@Nullable org.apache.beam.model.pipeline.v1.RunnerApi.MessageWithComponents |
getReplacement(java.lang.String transformId,
org.apache.beam.model.pipeline.v1.RunnerApi.ComponentsOrBuilder existingComponents)
Returns the updated composite structure for the provided
RunnerApi.PTransform . |
@Nullable org.apache.beam.model.pipeline.v1.RunnerApi.MessageWithComponents getReplacement(java.lang.String transformId, org.apache.beam.model.pipeline.v1.RunnerApi.ComponentsOrBuilder existingComponents)
RunnerApi.PTransform
.
If the return is null, then no replacement is performed, otherwise the returned RunnerApi.MessageWithComponents
must contain a single RunnerApi.PTransform
. The result RunnerApi.Components
will be merged into the existing components, and the result RunnerApi.PTransform
will be set as a replacement of the original RunnerApi.PTransform
. Notably, this does not
require that the existingComponents
are present in the returned RunnerApi.MessageWithComponents
.
Introduced components must not collide with any components in the existing components.