Package org.apache.beam.sdk.values
Class PBegin
java.lang.Object
org.apache.beam.sdk.values.PBegin
- All Implemented Interfaces:
PInput
PBegin is the "input" to a root PTransform, such as Read or Create.
Typically elided by simply calling Pipeline.apply(String, PTransform) or Pipeline.apply(PTransform), but one can be explicitly created by calling Pipeline.begin()
on a Pipeline.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<OutputT extends POutput>
OutputTapply(String name, PTransform<? super PBegin, OutputT> t) Applies the givenPTransformto thisPBegin, usingnameto identify this specific application of the transform.<OutputT extends POutput>
OutputTapply(PTransform<? super PBegin, OutputT> t) Likeapply(String, PTransform)but defaulting to the name of thePTransform.expand()static PBegin
-
Constructor Details
-
PBegin
-
-
Method Details
-
in
-
apply
Likeapply(String, PTransform)but defaulting to the name of thePTransform. -
apply
Applies the givenPTransformto thisPBegin, usingnameto identify this specific application of the transform.This name is used in various places, including the monitoring UI, logging, and to stably identify this application node in the job graph.
-
getPipeline
Description copied from interface:PInput- Specified by:
getPipelinein interfacePInput
-
expand
Description copied from interface:PInputExpands thisPInputinto a list of its component outputPValues.- A
PValueexpands to itself. - A tuple or list of
PValues(such asPCollectionTupleorPCollectionList) expands to its componentPValue PValues.
Not intended to be invoked directly by user code.
- A
-