public static class InputSampler.IntervalSampler<K,V> extends java.lang.Object implements InputSampler.Sampler<K,V>
| Constructor and Description |
|---|
InputSampler.IntervalSampler(double freq)
Create a new IntervalSampler sampling all splits.
|
InputSampler.IntervalSampler(double freq,
int maxSplitsSampled)
Create a new IntervalSampler.
|
public InputSampler.IntervalSampler(double freq)
freq - The frequency with which records will be emitted.public InputSampler.IntervalSampler(double freq,
int maxSplitsSampled)
freq - The frequency with which records will be emitted.maxSplitsSampled - The maximum number of splits to examine.getSample(org.apache.hadoop.mapreduce.InputFormat<K, V>, org.apache.hadoop.mapreduce.Job)public K[] getSample(InputFormat<K,V> inf, Job job) throws java.io.IOException, java.lang.InterruptedException
getSample in interface InputSampler.Sampler<K,V>java.io.IOExceptionjava.lang.InterruptedExceptionCopyright © 2009 The Apache Software Foundation