public class SpoutSourceWordCount extends Object
Spout.
The input is a plain text file with lines separated by newline characters.
Usage: WordCount <text path> <result path>
If no parameters are provided, the program is run with default data from WordCountData.
This example shows how to:
| Modifier and Type | Class and Description |
|---|---|
static class |
SpoutSourceWordCount.Tokenizer
Implements the string tokenizer that splits sentences into words as a user-defined FlatMapFunction.
|
| Constructor and Description |
|---|
SpoutSourceWordCount() |
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.