public static class InputSampler.SplitSampler<K,V> extends Object implements InputSampler.Sampler<K,V>
构造器和说明 |
---|
InputSampler.SplitSampler(int numSamples)
Create a SplitSampler sampling all splits.
|
InputSampler.SplitSampler(int numSamples,
int maxSplitsSampled)
Create a new SplitSampler.
|
public InputSampler.SplitSampler(int numSamples)
numSamples
- Total number of samples to obtain from all selected
splits.public InputSampler.SplitSampler(int numSamples, int maxSplitsSampled)
numSamples
- Total number of samples to obtain from all selected
splits.maxSplitsSampled
- The maximum number of splits to examine.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