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:
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 the PCollectionView
is how the PCollection
will be read as a side input.
- See Also:
-
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints
-
Method Summary
Modifier and TypeMethodDescriptionexpand
(PCollection<ElemT> input) Override this method to specify how thisPTransform
should be expanded on the givenInputT
.getView()
Deprecated.static <ElemT,
ViewT>
View.CreatePCollectionView<ElemT, ViewT> of
(PCollectionView<ViewT> view) Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Method Details
-
of
public static <ElemT,ViewT> View.CreatePCollectionView<ElemT,ViewT> of(PCollectionView<ViewT> view) -
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
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>>
-
PTransform
.