public final class SamplingIterable<T> extends Object implements Iterable<T>
Iterable whose Iterable.iterator() returns only some subset of the elements that
it would, as determined by a iterator rate parameter.| Constructor and Description |
|---|
SamplingIterable(Iterable<? extends T> delegate,
double samplingRate) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<T> |
iterator() |
static <T> Iterable<T> |
maybeWrapIterable(Iterable<T> delegate,
double samplingRate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.