|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object storm.trident.partition.GlobalGrouping
public class GlobalGrouping
Constructor Summary | |
---|---|
GlobalGrouping()
|
Method Summary | |
---|---|
java.util.List<java.lang.Integer> |
chooseTasks(int i,
java.util.List<java.lang.Object> list)
This function implements a custom stream grouping. |
void |
prepare(WorkerTopologyContext context,
GlobalStreamId stream,
java.util.List<java.lang.Integer> targets)
Tells the stream grouping at runtime the tasks in the target bolt. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalGrouping()
Method Detail |
---|
public void prepare(WorkerTopologyContext context, GlobalStreamId stream, java.util.List<java.lang.Integer> targets)
CustomStreamGrouping
prepare
in interface CustomStreamGrouping
public java.util.List<java.lang.Integer> chooseTasks(int i, java.util.List<java.lang.Object> list)
CustomStreamGrouping
chooseTasks
in interface CustomStreamGrouping
list
- the values to group on
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |