Class CreateViewTransform<I,​O>

  • Type Parameters:
    I - input type
    O - materialized output type
    All Implemented Interfaces:
    java.io.Serializable, Transform<org.apache.beam.sdk.util.WindowedValue<org.apache.beam.sdk.values.KV<?,​I>>,​org.apache.beam.sdk.util.WindowedValue<O>>

    public final class CreateViewTransform<I,​O>
    extends LatencymarkEmitTransform<org.apache.beam.sdk.util.WindowedValue<org.apache.beam.sdk.values.KV<?,​I>>,​org.apache.beam.sdk.util.WindowedValue<O>>
    This transforms emits materialized data for each window.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CreateViewTransform.MultiView<T>
      Represents PrimitiveViewT supplied to the ViewFn.
    • Constructor Summary

      Constructors 
      Constructor Description
      CreateViewTransform​(org.apache.beam.sdk.transforms.ViewFn<org.apache.beam.sdk.transforms.Materializations.MultimapView<java.lang.Void,​?>,​O> viewFn)
      Constructor of CreateViewTransform.
    • Constructor Detail

      • CreateViewTransform

        public CreateViewTransform​(org.apache.beam.sdk.transforms.ViewFn<org.apache.beam.sdk.transforms.Materializations.MultimapView<java.lang.Void,​?>,​O> viewFn)
        Constructor of CreateViewTransform.
        Parameters:
        viewFn - the viewFn that materializes data.
    • Method Detail

      • onData

        public void onData​(org.apache.beam.sdk.util.WindowedValue<org.apache.beam.sdk.values.KV<?,​I>> element)
        Description copied from interface: Transform
        On data received.
        Parameters:
        element - data received.
      • onWatermark

        public void onWatermark​(Watermark inputWatermark)
        Description copied from interface: Transform
        On watermark received. This method should be called for the minimum watermark among input streams (input watermark). Transform may emit collected data after receiving watermarks.
        Parameters:
        inputWatermark - watermark
      • close

        public void close()
        Description copied from interface: Transform
        Close the transform.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object