/** * <b><i>For internal use only; no backwards-compatibility guarantees.</i></b> * * <p>Applies the given {@code PTransform} to this input {@code InputT} and returns its {@code * OutputT}. This uses {@code name} to identify this specific application of the transform. This * name is used in various places, including the monitoring UI, logging, and to stably identify * this application node in the {@link Pipeline} graph during update. * * <p>Each {@link PInput} subclass that provides an {@code apply} method should delegate to this * method to ensure proper registration with the {@link PipelineRunner}. */ @Internal public static <InputT extends PInput, OutputT extends POutput> OutputT applyTransform( String name, InputT input, PTransform<? super InputT, OutputT> transform) { return input.getPipeline().applyInternal(name, input, transform); }
/** * <b><i>For internal use only; no backwards-compatibility guarantees.</i></b> * * <p>Like {@link #applyTransform(String, PInput, PTransform)} but defaulting to the name provided * by the {@link PTransform}. */ @Internal public static <InputT extends PInput, OutputT extends POutput> OutputT applyTransform( InputT input, PTransform<? super InputT, OutputT> transform) { return input.getPipeline().applyInternal(transform.getName(), input, transform); }