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 givenPTransform
to thisPBegin
, usingname
to 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 givenPTransform
to thisPBegin
, usingname
to 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:
getPipeline
in interfacePInput
-
expand
Description copied from interface:PInput
Expands thisPInput
into a list of its component outputPValues
.- A
PValue
expands to itself. - A tuple or list of
PValues
(such asPCollectionTuple
orPCollectionList
) expands to its componentPValue PValues
.
Not intended to be invoked directly by user code.
- A
-