Package org.apache.storm.grouping
Class PartialKeyGrouping.RandomTwoTaskAssignmentCreator
- java.lang.Object
-
- org.apache.storm.grouping.PartialKeyGrouping.RandomTwoTaskAssignmentCreator
-
- All Implemented Interfaces:
Serializable
,PartialKeyGrouping.AssignmentCreator
- Enclosing class:
- PartialKeyGrouping
public static class PartialKeyGrouping.RandomTwoTaskAssignmentCreator extends Object implements PartialKeyGrouping.AssignmentCreator
This implementation of AssignmentCreator chooses two arbitrary tasks.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RandomTwoTaskAssignmentCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
createAssignment(List<Integer> tasks, byte[] key)
Creates a two task assignment by selecting random tasks.
-
-
-
Method Detail
-
createAssignment
public int[] createAssignment(List<Integer> tasks, byte[] key)
Creates a two task assignment by selecting random tasks.- Specified by:
createAssignment
in interfacePartialKeyGrouping.AssignmentCreator
-
-