public class MutableToRegularIteratorWrapper<T> extends Object implements Iterator<T>, Iterable<T>
MutableObjectIterator into a regular Iterator.
Internally, it uses two record instances which it uses alternating. That way,
whenever hasNext() returns (possibly with false), the previous obtained record is
still valid and cannot have been overwritten internally.| Constructor and Description |
|---|
MutableToRegularIteratorWrapper(MutableObjectIterator<T> source,
TypeSerializer<T> serializer) |
public MutableToRegularIteratorWrapper(MutableObjectIterator<T> source, TypeSerializer<T> serializer)
Copyright © 2014 The Apache Software Foundation. All rights reserved.