|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object storm.trident.partition.IdentityGrouping
public class IdentityGrouping
Constructor Summary | |
---|---|
IdentityGrouping()
|
Method Summary | |
---|---|
java.util.List<java.lang.Integer> |
chooseTasks(int task,
java.util.List<java.lang.Object> values)
This function implements a custom stream grouping. |
void |
prepare(WorkerTopologyContext context,
GlobalStreamId stream,
java.util.List<java.lang.Integer> tasks)
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 IdentityGrouping()
Method Detail |
---|
public void prepare(WorkerTopologyContext context, GlobalStreamId stream, java.util.List<java.lang.Integer> tasks)
CustomStreamGrouping
prepare
in interface CustomStreamGrouping
public java.util.List<java.lang.Integer> chooseTasks(int task, java.util.List<java.lang.Object> values)
CustomStreamGrouping
chooseTasks
in interface CustomStreamGrouping
values
- the values to group on
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |