K
- the key typeV
- the value typeR
- in the case query
is null, this is Map.Entry<K,V>
, otherwise it is the return type of
the projectionpublic abstract class AbstractMapQueryPartitionIterator<K,V,R> extends Object implements Iterator<R>
Predicate
and a Projection
.
When iterating you can control:
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 Query |
query |
protected List<Data> |
segment |
Constructor and Description |
---|
AbstractMapQueryPartitionIterator(IMap<K,V> map,
int fetchSize,
int partitionId,
Predicate<K,V> predicate,
Projection<Map.Entry<K,V>,R> projection) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
advance() |
protected abstract List<Data> |
fetch() |
protected abstract SerializationService |
getSerializationService() |
boolean |
hasNext() |
R |
next() |
void |
remove() |
protected void |
setLastTableIndex(List<Data> segment,
int lastTableIndex) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final int fetchSize
protected final int partitionId
protected final Query query
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 boolean advance()
protected abstract SerializationService getSerializationService()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.