public class ReusingMutableToRegularIteratorWrapper<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 |
---|
ReusingMutableToRegularIteratorWrapper(MutableObjectIterator<T> source,
TypeSerializer<T> serializer) |
public ReusingMutableToRegularIteratorWrapper(MutableObjectIterator<T> source, TypeSerializer<T> serializer)
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.