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 PCollection
ViewT - The type associated with the PCollectionView 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:
  • Method Details

    • 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 this PTransform. That should be obtained by inspecting the TransformHierarchy.Node that contains this View.CreatePCollectionView, as this view may have been replaced within pipeline surgery.
      Return the PCollectionView that is returned by applying this PTransform.
    • expand

      public PCollection<ElemT> expand(PCollection<ElemT> input)
      Description copied from class: PTransform
      Override this method to specify how this PTransform should be expanded on the given InputT.

      NOTE: This method should not be called directly. Instead apply the PTransform should be applied to the InputT using the apply 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 class PTransform<PCollection<ElemT>,PCollection<ElemT>>