apache_beam.runners.pipeline_context module¶
Utility class for serializing pipelines via the runner API.
For internal use only; no backwards-compatibility guarantees.
-
class
apache_beam.runners.pipeline_context.
PortableObject
(*args, **kwargs)[source]¶ Bases:
typing_extensions.Protocol
-
class
apache_beam.runners.pipeline_context.
PipelineContext
(proto: Union[org.apache.beam.model.pipeline.v1.beam_runner_api_pb2.Components, org.apache.beam.model.fn_execution.v1.beam_fn_api_pb2.ProcessBundleDescriptor, None] = None, component_id_map: Optional[apache_beam.pipeline.ComponentIdMap] = None, default_environment: Optional[apache_beam.transforms.environments.Environment] = None, use_fake_coders: bool = False, iterable_state_read: Optional[Callable[[bytes, CoderImpl], Iterable[T_co]]] = None, iterable_state_write: Optional[Callable[[Iterable[T_co], CoderImpl], bytes]] = None, namespace: str = 'ref', requirements: Iterable[str] = ())[source]¶ Bases:
object
For internal use only; no backwards-compatibility guarantees.
Used for accessing and constructing the referenced objects of a Pipeline.
-
coder_id_from_element_type
(element_type: Any, requires_deterministic_key_coder: Optional[str] = None) → str[source]¶
-
deterministic_coder
(coder: apache_beam.coders.coders.Coder, msg: str) → apache_beam.coders.coders.Coder[source]¶
-