Package wordcount contains transforms for wordcount.
CountWords is a composite transform that counts the words of a PCollection of lines. It expects a PCollection of type string and returns a PCollection of type KV<string,int>. The Beam type checker enforces these constraints during pipeline construction.
Format formats a KV of a word and its count as a string.
WordCount returns a self-validating wordcount pipeline.