K
- the key typeV
- the value typepublic abstract class AbstractMapPartitionIterator<K,V> extends Object implements Iterator<Map.Entry<K,V>>
Modifier and Type | Field and Description |
---|---|
protected int |
currentIndex |
protected int |
fetchSize |
protected int |
index |
protected int |
lastTableIndex
The table is segment table of hash map, which is an array that stores the actual records.
|
protected IMap<K,V> |
map |
protected int |
partitionId |
protected boolean |
prefetchValues |
protected List |
result |
Constructor and Description |
---|
AbstractMapPartitionIterator(IMap<K,V> map,
int fetchSize,
int partitionId,
boolean prefetchValues) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
advance() |
protected abstract List |
fetch() |
protected abstract SerializationService |
getSerializationService() |
boolean |
hasNext() |
Map.Entry<K,V> |
next() |
void |
remove() |
protected void |
setLastTableIndex(List response,
int lastTableIndex) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final int fetchSize
protected final int partitionId
protected boolean prefetchValues
protected int lastTableIndex
The iteration will start from highest index available to the table. It will be converted to array size on the server side.
protected int index
protected int currentIndex
protected List result
protected boolean advance()
protected void setLastTableIndex(List response, int lastTableIndex)
protected abstract List fetch()
protected abstract SerializationService getSerializationService()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.