beam: github.com/apache/beam/sdks/go/test/integration/wordcount Index | Files

package wordcount

import "github.com/apache/beam/sdks/go/test/integration/wordcount"

Package wordcount contains transforms for wordcount.

Index

Package Files

wordcount.go

func CountWords Uses

func CountWords(s beam.Scope, lines beam.PCollection) beam.PCollection

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.

func Format Uses

func Format(s beam.Scope, counted beam.PCollection) beam.PCollection

Format formats a KV of a word and its count as a string.

func WordCount Uses

func WordCount(glob, hash string, size int) *beam.Pipeline

WordCount returns a self-validating wordcount pipeline.

Package wordcount imports 8 packages (graph) and is imported by 2 packages. Updated 2021-01-28. Refresh now. Tools for package owners.