public class PBegin extends java.lang.Object implements 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.
| 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(java.lang.String name,
PTransform<? super PBegin,OutputT> t)
Applies the given
PTransform to this PBegin, using name to identify
this specific application of the transform. |
java.util.Map<TupleTag<?>,PValue> |
expand()
|
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(java.lang.String name, PTransform<? super PBegin,OutputT> t)
PTransform to this 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 java.util.Map<TupleTag<?>,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.