public static class PartialKeyGrouping.RandomTwoTaskAssignmentCreator extends Object implements PartialKeyGrouping.AssignmentCreator
This implementation of AssignmentCreator chooses two arbitrary tasks.
Constructor and Description |
---|
RandomTwoTaskAssignmentCreator() |
Modifier and Type | Method and Description |
---|---|
int[] |
createAssignment(List<Integer> tasks,
byte[] key)
Creates a two task assignment by selecting random tasks.
|
public int[] createAssignment(List<Integer> tasks, byte[] key)
Creates a two task assignment by selecting random tasks.
createAssignment
in interface PartialKeyGrouping.AssignmentCreator
Copyright © 2022 The Apache Software Foundation. All rights reserved.