Class GroupByKeyTransform<I>

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

    public final class GroupByKeyTransform<I>
    extends NoWatermarkEmitTransform<I,​org.apache.beam.sdk.util.WindowedValue<org.apache.beam.sdk.values.KV<java.lang.Object,​java.util.List>>>
    Group Beam KVs.
    See Also:
    Serialized Form
    • Constructor Detail

      • GroupByKeyTransform

        public GroupByKeyTransform()
        GroupByKey constructor.
    • Method Detail

      • prepare

        public void prepare​(Transform.Context context,
                            OutputCollector<org.apache.beam.sdk.util.WindowedValue<org.apache.beam.sdk.values.KV<java.lang.Object,​java.util.List>>> oc)
        Description copied from interface: Transform
        Prepare the transform.
        Parameters:
        context - of the transform.
        oc - that collects outputs.
      • onData

        public void onData​(I element)
        Description copied from interface: Transform
        On data received.
        Parameters:
        element - data received.
      • close

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