public static class SimpleAssignmentStrategy.SimpleLoadCalculator extends Object implements SimpleAssignmentStrategy.LoadCalculator
Constructor | Description |
---|---|
SimpleLoadCalculator() |
Modifier and Type | Method | Description |
---|---|---|
int |
getLoad(int nPartition) |
Return the load for the specified partition.
|
int |
getLoad(PartitionSet parts) |
Return the load for the specified set of partitions.
|
public int getLoad(int nPartition)
getLoad
in interface SimpleAssignmentStrategy.LoadCalculator
nPartition
- the partition to determine the load forpublic int getLoad(PartitionSet parts)
getLoad
in interface SimpleAssignmentStrategy.LoadCalculator
parts
- the partition set to determine the load for