Google Cloud Dataflow SDK for Java, version 1.9.1
Class IntraBundleParallelization.Bound<InputT,OutputT>
- java.lang.Object
-
- com.google.cloud.dataflow.sdk.transforms.PTransform<PCollection<? extends InputT>,PCollection<OutputT>>
-
- com.google.cloud.dataflow.sdk.transforms.IntraBundleParallelization.Bound<InputT,OutputT>
-
- Type Parameters:
InputT
- the type of the (main) inputPCollection
elementsOutputT
- the type of the (main) outputPCollection
elements
- All Implemented Interfaces:
- HasDisplayData, Serializable
- Enclosing class:
- IntraBundleParallelization
public static class IntraBundleParallelization.Bound<InputT,OutputT> extends PTransform<PCollection<? extends InputT>,PCollection<OutputT>>
APTransform
that, when applied to aPCollection<InputT>
, invokes a user-specifiedDoFn<InputT, OutputT>
on all its elements, with all its outputs collected into an outputPCollection<OutputT>
.Note that the specified
doFn
needs to be thread safe.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.google.cloud.dataflow.sdk.transforms.PTransform
name
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PCollection<OutputT>
apply(PCollection<? extends InputT> input)
Applies thisPTransform
on the givenInputT
, and returns itsOutput
.<NewInputT,NewOutputT>
IntraBundleParallelization.Bound<NewInputT,NewOutputT>of(DoFn<NewInputT,NewOutputT> doFn)
void
populateDisplayData(DisplayData.Builder builder)
Register display data for the given transform or component.IntraBundleParallelization.Bound<InputT,OutputT>
withMaxParallelism(int maxParallelism)
Returns a newIntraBundleParallelization
PTransform
like this one with the specified maximum concurrency level.-
Methods inherited from class com.google.cloud.dataflow.sdk.transforms.PTransform
getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, toString, validate
-
-
-
-
Method Detail
-
withMaxParallelism
public IntraBundleParallelization.Bound<InputT,OutputT> withMaxParallelism(int maxParallelism)
Returns a newIntraBundleParallelization
PTransform
like this one with the specified maximum concurrency level.
-
of
public <NewInputT,NewOutputT> IntraBundleParallelization.Bound<NewInputT,NewOutputT> of(DoFn<NewInputT,NewOutputT> doFn)
Returns a newIntraBundleParallelization
PTransform
like this one with the specifiedDoFn
.Note that the specified
doFn
needs to be thread safe.
-
apply
public PCollection<OutputT> apply(PCollection<? extends InputT> input)
Description copied from class:PTransform
Applies thisPTransform
on the givenInputT
, and returns itsOutput
.Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
The default implementation throws an exception. A derived class must either implement apply, or else each runner must supply a custom implementation via
PipelineRunner.apply(com.google.cloud.dataflow.sdk.transforms.PTransform<InputT, OutputT>, InputT)
.- Overrides:
apply
in classPTransform<PCollection<? extends InputT>,PCollection<OutputT>>
-
populateDisplayData
public void populateDisplayData(DisplayData.Builder builder)
Description copied from class:PTransform
Register display data for the given transform or component.populateDisplayData(DisplayData.Builder)
is invoked by Pipeline runners to collect display data viaDisplayData.from(HasDisplayData)
. Implementations may callsuper.populateDisplayData(builder)
in order to register display data in the current namespace, but should otherwise usesubcomponent.populateDisplayData(builder)
to use the namespace of the subcomponent.By default, does not register any display data. Implementors may override this method to provide their own display data.
- Specified by:
populateDisplayData
in interfaceHasDisplayData
- Overrides:
populateDisplayData
in classPTransform<PCollection<? extends InputT>,PCollection<OutputT>>
- Parameters:
builder
- The builder to populate with display data.- See Also:
HasDisplayData
-
-