public static class InputSampler.IntervalSampler<K,V> extends Object implements InputSampler.Sampler<K,V>
构造器和说明 |
---|
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 IOException, InterruptedException
getSample
在接口中 InputSampler.Sampler<K,V>
IOException
InterruptedException
Copyright © 2009 The Apache Software Foundation