com.hazelcast.client.cache.impl
Class ClientClusterWideIterator<K,V>

java.lang.Object
  extended by com.hazelcast.cache.impl.AbstractClusterWideIterator<K,V>
      extended by com.hazelcast.client.cache.impl.ClientClusterWideIterator<K,V>
Type Parameters:
K - the type of key.
V - the type of value.
All Implemented Interfaces:
Iterator<javax.cache.Cache.Entry<K,V>>

public class ClientClusterWideIterator<K,V>
extends AbstractClusterWideIterator<K,V>
implements Iterator<javax.cache.Cache.Entry<K,V>>

Client side cluster-wide iterator for ICache.

This implementation is used by client implementation of jcache.

Note: For more information on the iterator details, see AbstractClusterWideIterator.


Field Summary
 
Fields inherited from class com.hazelcast.cache.impl.AbstractClusterWideIterator
cache, currentIndex, fetchSize, index, lastTableIndex, partitionCount, partitionIndex, result
 
Constructor Summary
ClientClusterWideIterator(ClientCacheProxy<K,V> cacheProxy, ClientContext context)
           
 
Method Summary
protected  CacheKeyIteratorResult fetch()
           
protected  Data toData(Object obj)
           
protected
<T> T
toObject(Object data)
           
 
Methods inherited from class com.hazelcast.cache.impl.AbstractClusterWideIterator
advance, ensureOpen, getPartitionCount, hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

ClientClusterWideIterator

public ClientClusterWideIterator(ClientCacheProxy<K,V> cacheProxy,
                                 ClientContext context)
Method Detail

fetch

protected CacheKeyIteratorResult fetch()
Specified by:
fetch in class AbstractClusterWideIterator<K,V>

toData

protected Data toData(Object obj)
Specified by:
toData in class AbstractClusterWideIterator<K,V>

toObject

protected <T> T toObject(Object data)
Specified by:
toObject in class AbstractClusterWideIterator<K,V>


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.