public static class ParDo.Unbound extends Object
ParDo transform, with unbound input/output types.
Before being applied, of(org.apache.beam.sdk.transforms.DoFn<InputT, OutputT>) must be
invoked to specify the DoFn to invoke, which will also
bind the input/output types of this PTransform.
| Modifier and Type | Method and Description |
|---|---|
<InputT,OutputT> |
of(DoFn<InputT,OutputT> fn)
Returns a new
ParDo PTransform that's like this
transform but that will invoke the given DoFn
function, and that has its input and output types bound. |
<InputT,OutputT> |
of(DoFnWithContext<InputT,OutputT> fn)
Returns a new
ParDo PTransform that's like this
transform but which will invoke the given DoFnWithContext
function, and which has its input and output types bound. |
<OutputT> ParDo.UnboundMulti<OutputT> |
withOutputTags(TupleTag<OutputT> mainOutputTag,
TupleTagList sideOutputTags)
Returns a new multi-output
ParDo transform that's like
this transform but with the specified main and side output
tags. |
ParDo.Unbound |
withSideInputs(Iterable<? extends PCollectionView<?>> sideInputs)
Returns a new
ParDo transform that is like this
transform but with the specified additional side inputs. |
ParDo.Unbound |
withSideInputs(PCollectionView<?>... sideInputs)
Returns a new
ParDo transform that's like this
transform but with the specified additional side inputs. |
public ParDo.Unbound withSideInputs(PCollectionView<?>... sideInputs)
ParDo transform that's like this
transform but with the specified additional side inputs.
Does not modify this transform. The resulting transform is
still incomplete.
See the discussion of Side Inputs above and on
ParDo.withSideInputs(org.apache.beam.sdk.values.PCollectionView<?>...) for more explanation.
public ParDo.Unbound withSideInputs(Iterable<? extends PCollectionView<?>> sideInputs)
ParDo transform that is like this
transform but with the specified additional side inputs. Does not modify
this transform. The resulting transform is still incomplete.
See the discussion of Side Inputs above and on
ParDo.withSideInputs(org.apache.beam.sdk.values.PCollectionView<?>...) for more explanation.
public <OutputT> ParDo.UnboundMulti<OutputT> withOutputTags(TupleTag<OutputT> mainOutputTag, TupleTagList sideOutputTags)
ParDo transform that's like
this transform but with the specified main and side output
tags. Does not modify this transform. The resulting transform
is still incomplete.
See the discussion of Side Outputs above and on
ParDo.withOutputTags(org.apache.beam.sdk.values.TupleTag<OutputT>, org.apache.beam.sdk.values.TupleTagList) for more explanation.
public <InputT,OutputT> ParDo.Bound<InputT,OutputT> of(DoFn<InputT,OutputT> fn)
ParDo PTransform that's like this
transform but that will invoke the given DoFn
function, and that has its input and output types bound. Does
not modify this transform. The resulting PTransform is
sufficiently specified to be applied, but more properties can
still be specified.public <InputT,OutputT> ParDo.Bound<InputT,OutputT> of(DoFnWithContext<InputT,OutputT> fn)
ParDo PTransform that's like this
transform but which will invoke the given DoFnWithContext
function, and which has its input and output types bound. Does
not modify this transform. The resulting PTransform is
sufficiently specified to be applied, but more properties can
still be specified.