Class CombinePerKeyExamples.ConcatWords

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.beam.sdk.transforms.ProcessFunction<java.lang.Iterable<java.lang.String>,​java.lang.String>, org.apache.beam.sdk.transforms.SerializableFunction<java.lang.Iterable<java.lang.String>,​java.lang.String>
    Enclosing class:
    CombinePerKeyExamples

    public static class CombinePerKeyExamples.ConcatWords
    extends java.lang.Object
    implements org.apache.beam.sdk.transforms.SerializableFunction<java.lang.Iterable<java.lang.String>,​java.lang.String>
    A 'combine function' used with the Combine.perKey transform. Builds a comma-separated string of all input items. So, it will build a string containing all the different Shakespeare plays in which the given input word has appeared.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ConcatWords()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String apply​(java.lang.Iterable<java.lang.String> input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConcatWords

        public ConcatWords()
    • Method Detail

      • apply

        public java.lang.String apply​(java.lang.Iterable<java.lang.String> input)
        Specified by:
        apply in interface org.apache.beam.sdk.transforms.ProcessFunction<java.lang.Iterable<java.lang.String>,​java.lang.String>
        Specified by:
        apply in interface org.apache.beam.sdk.transforms.SerializableFunction<java.lang.Iterable<java.lang.String>,​java.lang.String>