Package org.apache.beam.sdk.values
Class PValues
java.lang.Object
org.apache.beam.sdk.values.PValues
For internal use. No backwards compatibility guarantees.
A primitive value within Beam.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map<TupleTag<?>, PCollection<?>> expandInput(PInput input) static Map<TupleTag<?>, PCollection<?>> expandOutput(POutput output) static Map<TupleTag<?>, PCollection<?>> expandValue(PValue value) static Map<TupleTag<?>, PCollection<?>> fullyExpand(Map<TupleTag<?>, PValue> partiallyExpanded) Returns all the taggedPCollectionsrepresented in the givenPValue.
-
Method Details
-
fullyExpand
public static Map<TupleTag<?>,PCollection<?>> fullyExpand(Map<TupleTag<?>, PValue> partiallyExpanded) Returns all the taggedPCollectionsrepresented in the givenPValue.For backwards-compatibility, PCollectionView is still a "PValue" to users, which occurs in only these places:
POutput.expand()(users can write custom POutputs)PInput.expand()(users can write custom PInputs)PTransform.getAdditionalInputs()(users can have their composites report inputs not passed byPCollection.apply(org.apache.beam.sdk.transforms.PTransform<? super org.apache.beam.sdk.values.PCollection<T>, OutputT>))
These all return
Map<TupleTag<?> PValue>. A user's implementation of these methods is permitted to return either aPCollectionor aPCollectionViewfor each PValue. PCollection's expand to themselves andPCollectionViewexpands to thePCollectionthat it is a view of. -
expandOutput
-
expandInput
-
expandValue
-