apache_beam.runners.sdf_common module¶
This module contains Splittable DoFn logic that’s common to all runners.
-
class
apache_beam.runners.sdf_common.
SplittableParDoOverride
[source]¶ Bases:
apache_beam.pipeline.PTransformOverride
A transform override for ParDo transformss of SplittableDoFns.
Replaces the ParDo transform with a SplittableParDo transform that performs SDF specific logic.
-
class
apache_beam.runners.sdf_common.
SplittableParDo
(ptransform)[source]¶ Bases:
apache_beam.transforms.ptransform.PTransform
A transform that processes a PCollection using a Splittable DoFn.
-
class
apache_beam.runners.sdf_common.
ElementAndRestriction
(element, restriction)[source]¶ Bases:
future.types.newobject.newobject
A holder for an element and a restriction.
-
class
apache_beam.runners.sdf_common.
PairWithRestrictionFn
(do_fn)[source]¶ Bases:
apache_beam.transforms.core.DoFn
A transform that pairs each element with a restriction.
-
class
apache_beam.runners.sdf_common.
SplitRestrictionFn
(do_fn)[source]¶ Bases:
apache_beam.transforms.core.DoFn
A transform that perform initial splitting of Splittable DoFn inputs.
-
class
apache_beam.runners.sdf_common.
ExplodeWindowsFn
(*unused_args, **unused_kwargs)[source]¶ Bases:
apache_beam.transforms.core.DoFn
A transform that forces the runner to explode windows.
This is done to make sure that Splittable DoFn proceses an element for each of the windows that element belongs to.
-
class
apache_beam.runners.sdf_common.
RandomUniqueKeyFn
(*unused_args, **unused_kwargs)[source]¶ Bases:
apache_beam.transforms.core.DoFn
A transform that assigns a unique key to each element.
-
class
apache_beam.runners.sdf_common.
ProcessKeyedElements
(sdf, element_coder, restriction_coder, windowing_strategy, ptransform_args, ptransform_kwargs, ptransform_side_inputs)[source]¶ Bases:
apache_beam.transforms.ptransform.PTransform
A primitive transform that performs SplittableDoFn magic.
Input to this transform should be a PCollection of keyed ElementAndRestriction objects.