public static class InputSampler.SplitSampler<K,V> extends InputSampler.SplitSampler<K,V> implements InputSampler.Sampler<K,V>
maxSplitsSampled, numSamples
Constructor and Description |
---|
SplitSampler(int numSamples)
Create a SplitSampler sampling all splits.
|
SplitSampler(int numSamples,
int maxSplitsSampled)
Create a new SplitSampler.
|
Modifier and Type | Method and Description |
---|---|
K[] |
getSample(InputFormat<K,V> inf,
JobConf job)
From each split sampled, take the first numSamples / numSplits records.
|
getSample
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSample
public SplitSampler(int numSamples)
numSamples
- Total number of samples to obtain from all selected
splits.public 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, JobConf job) throws IOException
IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.