public class RDDSampleUtils extends Object
| Constructor and Description |
|---|
RDDSampleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getSampleNumbers(Integer numPartitions,
long totalNumberOfRecords)
Gets the sample numbers.
|
public static int getSampleNumbers(Integer numPartitions, long totalNumberOfRecords) throws Exception
numPartitions - the num partitionstotalNumberOfRecords - the total number of recordsException - the exceptionCopyright © 2017. All rights reserved.