public interface SamplingRankFunction<T>
KSamplerMapReduce to rank an object for selection in the sample set. The top k
highest ranked objects are sampled. Rank is between 0.0 and 1.0 inclusive.| Modifier and Type | Method and Description |
|---|---|
void |
initialize(org.apache.hadoop.mapreduce.JobContext context,
Class<?> scope,
org.slf4j.Logger logger) |
double |
rank(int sampleSize,
T value) |
void initialize(org.apache.hadoop.mapreduce.JobContext context,
Class<?> scope,
org.slf4j.Logger logger)
throws IOException
IOExceptiondouble rank(int sampleSize,
T value)
Copyright © 2013–2019. All rights reserved.