InputT
- input PInput
type of the transformOutputT
- output POutput
type of the transformpublic static interface ExpansionService.TransformProvider<InputT extends PInput,OutputT extends POutput>
RunnerApi.FunctionSpec
to a PTransform
, together with
mappings of its inputs and outputs to maps of PCollections.Modifier and Type | Method and Description |
---|---|
default java.util.Map<java.lang.String,PCollection<?>> |
apply(Pipeline p,
java.lang.String name,
org.apache.beam.model.pipeline.v1.RunnerApi.FunctionSpec spec,
java.util.Map<java.lang.String,PCollection<?>> inputs) |
default InputT |
createInput(Pipeline p,
java.util.Map<java.lang.String,PCollection<?>> inputs) |
default java.util.Map<java.lang.String,PCollection<?>> |
extractOutputs(OutputT output) |
default java.util.List<java.lang.String> |
getDependencies(org.apache.beam.model.pipeline.v1.RunnerApi.FunctionSpec spec,
PipelineOptions options) |
PTransform<InputT,OutputT> |
getTransform(org.apache.beam.model.pipeline.v1.RunnerApi.FunctionSpec spec) |
default InputT createInput(Pipeline p, java.util.Map<java.lang.String,PCollection<?>> inputs)
PTransform<InputT,OutputT> getTransform(org.apache.beam.model.pipeline.v1.RunnerApi.FunctionSpec spec)
default java.util.Map<java.lang.String,PCollection<?>> extractOutputs(OutputT output)
default java.util.Map<java.lang.String,PCollection<?>> apply(Pipeline p, java.lang.String name, org.apache.beam.model.pipeline.v1.RunnerApi.FunctionSpec spec, java.util.Map<java.lang.String,PCollection<?>> inputs)
default java.util.List<java.lang.String> getDependencies(org.apache.beam.model.pipeline.v1.RunnerApi.FunctionSpec spec, PipelineOptions options)