org.apache.mahout.common.iterator
Class StableFixedSizeSamplingIterator<T>
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingIterator<T>
org.apache.mahout.common.iterator.StableFixedSizeSamplingIterator<T>
- All Implemented Interfaces:
- Iterator<T>
public class StableFixedSizeSamplingIterator<T>
- extends com.google.common.collect.ForwardingIterator<T>
Sample a fixed number of elements from an Iterator. The results will appear in the original order at some
cost in time and memory relative to a FixedSizeSampler.
Methods inherited from class com.google.common.collect.ForwardingIterator |
hasNext, next, remove |
Methods inherited from class com.google.common.collect.ForwardingObject |
toString |
StableFixedSizeSamplingIterator
public StableFixedSizeSamplingIterator(int size,
Iterator<T> source)
delegate
protected Iterator<T> delegate()
- Overrides:
delegate
in class com.google.common.collect.ForwardingIterator<T>
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.