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.mapred.InputFormat<K, V>, org.apache.hadoop.mapred.JobConf)
public K[] getSample(InputFormat<K,V> inf, JobConf job) throws IOException
getSample
在接口中 InputSampler.Sampler<K,V>
IOException
Copyright © 2009 The Apache Software Foundation