public class BlockReplicationUtils
extends Object
Constructor and Description |
---|
BlockReplicationUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> scala.collection.immutable.List<T> |
getRandomSample(scala.collection.Seq<T> elems,
int m,
scala.util.Random r)
Get a random sample of size m from the elems
|
public static <T> scala.collection.immutable.List<T> getRandomSample(scala.collection.Seq<T> elems, int m, scala.util.Random r)
elems
- m
- number of samples neededr
- random number generator