Class 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:
    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 the PCollectionView is how the PCollection will be read as a side input.

    See Also:
    Serialized Form
    • Method Detail

      • 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>>