T - public class RandomSamplingRankFunction<T> extends Object implements SamplingRankFunction<T>
| Constructor and Description |
|---|
RandomSamplingRankFunction() |
| 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) |
public void initialize(org.apache.hadoop.mapreduce.JobContext context,
Class<?> scope,
org.slf4j.Logger logger)
throws IOException
initialize in interface SamplingRankFunction<T>IOExceptionpublic double rank(int sampleSize,
T value)
rank in interface SamplingRankFunction<T>Copyright © 2013–2022. All rights reserved.