public class MultiThreadWordCountTopology extends ConfigurableTopology
Some topologies might spawn some threads within bolts to do some work and emit tuples from those threads. This is a simple wordcount topology example that mimics those use cases and might help us catch possible race conditions.
Modifier and Type | Class and Description |
---|---|
static class |
MultiThreadWordCountTopology.MultiThreadedSplitSentence |
conf
Constructor and Description |
---|
MultiThreadWordCountTopology() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
protected int |
run(String[] args) |
public static void main(String[] args)
protected int run(String[] args)
run
in class ConfigurableTopology
Copyright © 2020 The Apache Software Foundation. All rights reserved.