public static class WordCount.CountWords extends PTransform<PCollection<String>,PCollection<String>>
Although this pipeline fragment could be inlined, bundling it as a PTransform allows for easy reuse, modular testing, and an improved monitoring experience.
name| Constructor and Description |
|---|
WordCount.CountWords() |
| Modifier and Type | Method and Description |
|---|---|
PCollection<String> |
apply(PCollection<String> lines) |
getDefaultName, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, setName, toString, validate, withNamepublic PCollection<String> apply(PCollection<String> lines)
apply in class PTransform<PCollection<String>,PCollection<String>>