public class WordCount extends java.lang.Object implements java.io.Serializable, Twister2Worker
Modifier and Type | Class and Description |
---|---|
static class |
WordCount.CountWords
A PTransform that converts a PCollection containing lines of text into a PCollection of
formatted word counts.
|
static class |
WordCount.FormatAsTextFn
A SimpleFunction that converts a Word and Count into a printable string.
|
static interface |
WordCount.WordCountOptions
Options supported by
WordCount . |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TOKENIZER_PATTERN |
Constructor and Description |
---|
WordCount() |
Modifier and Type | Method and Description |
---|---|
void |
execute(WorkerEnvironment workerEnv)
This is the main point of entry for Twister2 jobs.
|
public static final java.lang.String TOKENIZER_PATTERN
public void execute(WorkerEnvironment workerEnv)
Twister2Worker
execute
in interface Twister2Worker