public class PBegin extends Object implements PInput
PBegin is the "input" to a root PTransform, such as Read or
Create.
Typically created by calling Pipeline.begin() on a Pipeline.
| Modifier | Constructor and Description |
|---|---|
protected |
PBegin(Pipeline pipeline)
|
| Modifier and Type | Method and Description |
|---|---|
<OutputT extends POutput> |
apply(PTransform<? super PBegin,OutputT> t)
Like
apply(String, PTransform) but defaulting to the name
of the PTransform. |
<OutputT extends POutput> |
apply(String name,
PTransform<? super PBegin,OutputT> t)
Applies the given
PTransform to this input PBegin,
using name to identify this specific application of the transform. |
Collection<? extends PValue> |
expand()
|
void |
finishSpecifying()
After building, finalizes this
PInput to make it ready for
being used as an input to a PTransform. |
Pipeline |
getPipeline()
|
static PBegin |
in(Pipeline pipeline)
|
protected PBegin(Pipeline pipeline)
public <OutputT extends POutput> OutputT apply(PTransform<? super PBegin,OutputT> t)
apply(String, PTransform) but defaulting to the name
of the PTransform.public <OutputT extends POutput> OutputT apply(String name, PTransform<? super PBegin,OutputT> t)
PTransform to this input PBegin,
using name 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.public Pipeline getPipeline()
PInputgetPipeline in interface PInputpublic Collection<? extends PValue> expand()
PInputPInput into a list of its component output
PValues.
PValue expands to itself.PValues (such as
PCollectionTuple or PCollectionList)
expands to its component PValue PValues.Not intended to be invoked directly by user code.
public void finishSpecifying()
PInputAfter building, finalizes this PInput to make it ready for
being used as an input to a PTransform.
Automatically invoked whenever apply() is invoked on
this PInput, so users do not normally call this explicitly.
finishSpecifying in interface PInput