com.hazelcast.cache.impl
Class ClusterWideIterator<K,V>

java.lang.Object
  extended by com.hazelcast.cache.impl.AbstractClusterWideIterator<K,V>
      extended by com.hazelcast.cache.impl.ClusterWideIterator<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 ClusterWideIterator<K,V>
extends AbstractClusterWideIterator<K,V>
implements Iterator<javax.cache.Cache.Entry<K,V>>

Cluster-wide iterator for ICache.

This implementation is used for server or embedded mode.

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

See Also:
AbstractClusterWideIterator

Field Summary
 
Fields inherited from class com.hazelcast.cache.impl.AbstractClusterWideIterator
cache, currentIndex, fetchSize, index, lastTableIndex, partitionCount, partitionIndex, result
 
Constructor Summary
ClusterWideIterator(CacheProxy<K,V> cache)
           
 
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

ClusterWideIterator

public ClusterWideIterator(CacheProxy<K,V> cache)
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.