public class ClientMapQueryPartitionIterator<K,V,R> extends AbstractMapQueryPartitionIterator<K,V,R>
partitionId
. The values are not fetched one-by-one but rather in batches.
The Iterator.remove()
method is not supported and will throw an UnsupportedOperationException
.
NOTE
Iterating the map should be done only when the IMap
is not being
mutated and the cluster is stable (there are no migrations or membership changes).
In other cases, the iterator may not return some entries or may return an entry twice.currentIndex, fetchSize, index, lastTableIndex, map, partitionId, query, segment
Constructor and Description |
---|
ClientMapQueryPartitionIterator(ClientMapProxy<K,V> mapProxy,
ClientContext context,
int fetchSize,
int partitionId,
Predicate<K,V> predicate,
Projection<Map.Entry<K,V>,R> projection) |
Modifier and Type | Method and Description |
---|---|
protected List<Data> |
fetch() |
protected SerializationService |
getSerializationService() |
advance, hasNext, next, remove, setLastTableIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public ClientMapQueryPartitionIterator(ClientMapProxy<K,V> mapProxy, ClientContext context, int fetchSize, int partitionId, Predicate<K,V> predicate, Projection<Map.Entry<K,V>,R> projection)
protected List<Data> fetch()
fetch
in class AbstractMapQueryPartitionIterator<K,V,R>
protected SerializationService getSerializationService()
getSerializationService
in class AbstractMapQueryPartitionIterator<K,V,R>
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.