Optional
beamIf provided, the default name to use for this operation.
Optional
finishCalled once at the end of every bundle, after any process()
calls.
This can be used to clean up expensive initialization and/or flush any elements that were buffered.
Process a single element from the PCollection, returning an iterable of zero or more result elements.
Also takes as input an optional context element which has the same type as was passed into the parDo at construction time (but which is now "activated" in the sense that side inputs, metrics, etc. are available with runtime values/effects).
Optional
startCalled once at the start of every bundle, before any process()
calls.
This can be used to amortize any expensive initialization.
Generated using TypeDoc
The interface used to apply an elementwise MappingFn to a PCollection.
For simple transformations,
PCollection.map
orPCollection.flatMap
may be simpler to use.See also https://beam.apache.org/documentation/programming-guide/#pardo