public class RepeatableSampler extends Sampler
Sampler.SampleResultsamplingParams| Constructor | Description |
|---|---|
RepeatableSampler(SamplingParams params) |
| Modifier and Type | Method | Description |
|---|---|---|
protected Sampler.SampleResult |
createSample(ScoredDocIDs docids,
int actualSize,
int sampleSetSize) |
Create and return a sample of the input set
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSampleFixer, getSampleSet, getSamplingParams, overSampledSearchParams, shouldSample, trimResultpublic RepeatableSampler(SamplingParams params)
protected Sampler.SampleResult createSample(ScoredDocIDs docids, int actualSize, int sampleSetSize) throws IOException
SamplercreateSample in class Samplerdocids - input set out of which a sample is to be createdactualSize - original size of set, prior to samplingsampleSetSize - required size of sample setIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.