Search in sources :

Example 1 with ClientMapIterator

use of com.hazelcast.client.map.impl.iterator.ClientMapIterator in project hazelcast by hazelcast.

the class ClientMapProxy method iterator.

@Override
@Nonnull
public Iterator<Entry<K, V>> iterator(int fetchSize) {
    ClientPartitionService partitionService = getContext().getPartitionService();
    int partitionCount = partitionService.getPartitionCount();
    return new ClientMapIterator<>(this, fetchSize, partitionCount, false);
}
Also used : ClientMapIterator(com.hazelcast.client.map.impl.iterator.ClientMapIterator) ClientPartitionService(com.hazelcast.client.impl.spi.ClientPartitionService) Nonnull(javax.annotation.Nonnull)

Example 2 with ClientMapIterator

use of com.hazelcast.client.map.impl.iterator.ClientMapIterator in project hazelcast by hazelcast.

the class ClientMapProxy method iterator.

@Override
@Nonnull
public Iterator<Entry<K, V>> iterator() {
    ClientPartitionService partitionService = getContext().getPartitionService();
    int partitionCount = partitionService.getPartitionCount();
    return new ClientMapIterator<>(this, partitionCount, false);
}
Also used : ClientMapIterator(com.hazelcast.client.map.impl.iterator.ClientMapIterator) ClientPartitionService(com.hazelcast.client.impl.spi.ClientPartitionService) Nonnull(javax.annotation.Nonnull)

Aggregations

ClientPartitionService (com.hazelcast.client.impl.spi.ClientPartitionService)2 ClientMapIterator (com.hazelcast.client.map.impl.iterator.ClientMapIterator)2 Nonnull (javax.annotation.Nonnull)2