Values (Google Cloud Dataflow SDK 1.9.1 API)

Google Cloud Dataflow SDK for Java, version 1.9.1

com.google.cloud.dataflow.sdk.transforms

Class Values<V>

  • Type Parameters:
    V - the type of the values in the input PCollection, and the type of the elements in the output PCollection
    All Implemented Interfaces:
    HasDisplayData, Serializable


    public class Values<V>
    extends PTransform<PCollection<? extends KV<?,V>>,PCollection<V>>
    Values<V> takes a PCollection of KV<K, V>s and returns a PCollection<V> of the values.

    Example of use:

     
     PCollection<KV<String, Long>> wordCounts = ...;
     PCollection<Long> counts = wordCounts.apply(Values.<Long>create());
      

    Each output element has the same timestamp and is in the same windows as its corresponding input element, and the output PCollection has the same WindowFn associated with it as the input.

    See also Keys.

    See Also:
    Serialized Form
    • Method Detail

      • create

        public static <V> Values<V> create()
        Returns a Values<V> PTransform.
        Type Parameters:
        V - the type of the values in the input PCollection, and the type of the elements in the output PCollection


Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Dataflow