public class PartitionSplittingBackingMap.PartitionedIterator
extends com.oracle.common.collections.AbstractStableIterator
This is primarily intended for use with the BinaryMap, which does not provide thread-safe iterators if the BinaryMap continues to be modified while the iteration is occurring.
Modifier | Constructor and Description |
---|---|
protected |
PartitionedIterator(Map[] amap)
Construct PartitionedIterator based on the specified array of maps, where each map contains data for one and only one partition.
|
Modifier and Type | Method and Description |
---|---|
protected void |
advance()
Advance to the next object.
|
protected void |
remove(Object oPrev)
Remove the specified item.
|
getPrevious, hasMoreElements, hasNext, next, nextElement, remove, setNext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected PartitionedIterator(Map[] amap)
amap
- an array of underlying mapsprotected void advance()
This method must be implemented by the concrete sub-class by calling AbstractStableIterator.setNext(T)
if there is a next object.
advance
in class com.oracle.common.collections.AbstractStableIterator
protected void remove(Object oPrev)
This is an optional operation. If the Iterator supports element removal, then it should implement this method, which is delegated to by the AbstractStableIterator.remove()
method.
remove
in class com.oracle.common.collections.AbstractStableIterator
oPrev
- the previously iterated object that should be removed