public class WordCount extends java.lang.Object implements java.io.Serializable, Twister2Worker
| Modifier and Type | Class and Description | 
|---|---|
| static class  | WordCount.CountWordsA PTransform that converts a PCollection containing lines of text into a PCollection of
 formatted word counts. | 
| static class  | WordCount.FormatAsTextFnA SimpleFunction that converts a Word and Count into a printable string. | 
| static interface  | WordCount.WordCountOptionsOptions 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)
Twister2Workerexecute in interface Twister2Worker