public class WordCountTopology extends Object
StormTopology
.
The input is a plain text file with lines separated by newline characters.
Usage:
WordCount[Local|LocalByName|RemoteByClient|RemoteBySubmitter] <text path> <result path>
If no parameters are provided, the program is run with default data from WordCountData
.
This example shows how to:
Constructor and Description |
---|
WordCountTopology() |
Modifier and Type | Method and Description |
---|---|
static org.apache.storm.topology.TopologyBuilder |
buildTopology() |
static org.apache.storm.topology.TopologyBuilder |
buildTopology(boolean indexOrName) |
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.