public final class ReadsDownsamplingIterator extends PushToPullIterator<GATKRead>
ReadsDownsampler)
interface. Wraps an iterator of reads,
and downsamples the reads from that iterator using the provided downsampler.
Converts the push-style ReadsDownsampler)
interface to a pull model.Constructor and Description |
---|
ReadsDownsamplingIterator(java.util.Iterator<GATKRead> iter,
ReadsDownsampler downsampler) |
hasNext, iterator, next, remove
public ReadsDownsamplingIterator(java.util.Iterator<GATKRead> iter, ReadsDownsampler downsampler)
iter
- wrapped iterator from which this iterator will pull reads to be downsampleddownsampler
- downsampler through which the reads from the wrapped iterator will be fed