Package org.apache.storm.topology
Interface InputDeclarer<T extends InputDeclarer>
- All Known Subinterfaces:
BoltDeclarer
- All Known Implementing Classes:
TopologyBuilder.BoltGetter
public interface InputDeclarer<T extends InputDeclarer>
-
Method Summary
Modifier and TypeMethodDescriptionallGrouping
(String componentId) The stream is replicated across all the bolt's tasks.allGrouping
(String componentId, String streamId) The stream is replicated across all the bolt's tasks.customGrouping
(String componentId, String streamId, CustomStreamGrouping grouping) A custom stream grouping by implementing the CustomStreamGrouping interface.customGrouping
(String componentId, CustomStreamGrouping grouping) A custom stream grouping by implementing the CustomStreamGrouping interface.directGrouping
(String componentId) A stream grouped this way means that the producer of the tuple decides which task of the consumer will receive this tuple.directGrouping
(String componentId, String streamId) A stream grouped this way means that the producer of the tuple decides which task of the consumer will receive this tuple.fieldsGrouping
(String componentId, String streamId, Fields fields) The stream is partitioned by the fields specified in the grouping.fieldsGrouping
(String componentId, Fields fields) The stream is partitioned by the fields specified in the grouping.globalGrouping
(String componentId) The entire stream goes to a single one of the bolt's tasks.globalGrouping
(String componentId, String streamId) The entire stream goes to a single one of the bolt's tasks.grouping
(GlobalStreamId id, Grouping grouping) localOrShuffleGrouping
(String componentId) If the target bolt has one or more tasks in the same worker process, tuples will be shuffled to just those in-process tasks.localOrShuffleGrouping
(String componentId, String streamId) If the target bolt has one or more tasks in the same worker process, tuples will be shuffled to just those in-process tasks.noneGrouping
(String componentId) This grouping specifies that you don't care how the stream is grouped.noneGrouping
(String componentId, String streamId) This grouping specifies that you don't care how the stream is grouped.partialKeyGrouping
(String componentId, String streamId, Fields fields) Tuples are passed to two hashing functions and each target task is decided based on the comparison of the state of candidate nodes.partialKeyGrouping
(String componentId, Fields fields) Tuples are passed to two hashing functions and each target task is decided based on the comparison of the state of candidate nodes.shuffleGrouping
(String componentId) Tuples are randomly distributed across the bolt's tasks in a way such that each bolt is guaranteed to get an equal number of tuples.shuffleGrouping
(String componentId, String streamId) Tuples are randomly distributed across the bolt's tasks in a way such that each bolt is guaranteed to get an equal number of tuples.
-
Method Details
-
fieldsGrouping
The stream is partitioned by the fields specified in the grouping. -
fieldsGrouping
The stream is partitioned by the fields specified in the grouping. -
globalGrouping
The entire stream goes to a single one of the bolt's tasks. Specifically, it goes to the task with the lowest id. -
globalGrouping
The entire stream goes to a single one of the bolt's tasks. Specifically, it goes to the task with the lowest id. -
shuffleGrouping
Tuples are randomly distributed across the bolt's tasks in a way such that each bolt is guaranteed to get an equal number of tuples. -
shuffleGrouping
Tuples are randomly distributed across the bolt's tasks in a way such that each bolt is guaranteed to get an equal number of tuples. -
localOrShuffleGrouping
If the target bolt has one or more tasks in the same worker process, tuples will be shuffled to just those in-process tasks. Otherwise, this acts like a normal shuffle grouping. -
localOrShuffleGrouping
If the target bolt has one or more tasks in the same worker process, tuples will be shuffled to just those in-process tasks. Otherwise, this acts like a normal shuffle grouping. -
noneGrouping
This grouping specifies that you don't care how the stream is grouped. -
noneGrouping
This grouping specifies that you don't care how the stream is grouped. -
allGrouping
The stream is replicated across all the bolt's tasks. Use this grouping with care. -
allGrouping
The stream is replicated across all the bolt's tasks. Use this grouping with care. -
directGrouping
A stream grouped this way means that the producer of the tuple decides which task of the consumer will receive this tuple. -
directGrouping
A stream grouped this way means that the producer of the tuple decides which task of the consumer will receive this tuple. -
partialKeyGrouping
Tuples are passed to two hashing functions and each target task is decided based on the comparison of the state of candidate nodes.See https://melmeric.files.wordpress.com/2014/11/the-power-of-both-choices-practical-load-balancing-for-distributed-stream -processing-engines.pdf
-
partialKeyGrouping
Tuples are passed to two hashing functions and each target task is decided based on the comparison of the state of candidate nodes.See https://melmeric.files.wordpress.com/2014/11/the-power-of-both-choices-practical-load-balancing-for-distributed-stream -processing-engines.pdf
-
customGrouping
A custom stream grouping by implementing the CustomStreamGrouping interface. -
customGrouping
A custom stream grouping by implementing the CustomStreamGrouping interface. -
grouping
-