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:
| Modifier and Type | Field and Description |
|---|---|
static String |
counterId |
static String |
sinkId |
static String |
spoutId |
static String |
tokenierzerId |
| Constructor and Description |
|---|
WordCountTopology() |
| Modifier and Type | Method and Description |
|---|---|
static backtype.storm.topology.TopologyBuilder |
buildTopology() |
static backtype.storm.topology.TopologyBuilder |
buildTopology(boolean indexOrName) |
public static final String spoutId
public static final String tokenierzerId
public static final String counterId
public static final String sinkId
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.