public final class ScatterHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<Integer> |
getUniformCounts(int elementCount,
int taskCount)
Uniformly distribute a number of elements across a number of Tasks and return a list of counts.
|
public static List<Integer> getUniformCounts(int elementCount, int taskCount)
elementCount - number of elements to distributetaskCount - number of Tasks that receive elementsCopyright © 2016 The Apache Software Foundation. All rights reserved.