Package org.apache.beam.sdk.transforms
Class View.CreatePCollectionView<ElemT,ViewT>
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<PCollection<ElemT>,PCollection<ElemT>>
-
- org.apache.beam.sdk.transforms.View.CreatePCollectionView<ElemT,ViewT>
-
- Type Parameters:
ElemT
- The type of the elements of the input PCollectionViewT
- The type associated with thePCollectionView
used as a side input
- All Implemented Interfaces:
java.io.Serializable
,HasDisplayData
- Enclosing class:
- View
@Internal public static class View.CreatePCollectionView<ElemT,ViewT> extends PTransform<PCollection<ElemT>,PCollection<ElemT>>
For internal use only; no backwards-compatibility guarantees.Placeholder transform for runners to have a hook to materialize a
PCollection
as a side input. The metadata included in thePCollectionView
is how thePCollection
will be read as a side input.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
name, resourceHints
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PCollection<ElemT>
expand(PCollection<ElemT> input)
Override this method to specify how thisPTransform
should be expanded on the givenInputT
.PCollectionView<ViewT>
getView()
Deprecated.This should not be used to obtain the output of any given application of thisPTransform
.static <ElemT,ViewT>
View.CreatePCollectionView<ElemT,ViewT>of(PCollectionView<ViewT> view)
-
Methods inherited from class org.apache.beam.sdk.transforms.PTransform
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, toString, validate, validate
-
-
-
-
Method Detail
-
of
public static <ElemT,ViewT> View.CreatePCollectionView<ElemT,ViewT> of(PCollectionView<ViewT> view)
-
getView
@Deprecated public PCollectionView<ViewT> getView()
Deprecated.This should not be used to obtain the output of any given application of thisPTransform
. That should be obtained by inspecting theTransformHierarchy.Node
that contains thisView.CreatePCollectionView
, as this view may have been replaced within pipeline surgery.Return thePCollectionView
that is returned by applying thisPTransform
.
-
expand
public PCollection<ElemT> expand(PCollection<ElemT> input)
Description copied from class:PTransform
Override this method to specify how thisPTransform
should be expanded on the givenInputT
.NOTE: This method should not be called directly. Instead apply the
PTransform
should be applied to theInputT
using theapply
method.Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
- Specified by:
expand
in classPTransform<PCollection<ElemT>,PCollection<ElemT>>
-
-