Package org.infinispan.distribution.util
Class ReadOnlySegmentAwareEntryIterator<K,V>
- java.lang.Object
-
- org.infinispan.distribution.util.ReadOnlySegmentAwareIterator<Map.Entry<K,V>>
-
- org.infinispan.distribution.util.ReadOnlySegmentAwareEntryIterator<K,V>
-
public class ReadOnlySegmentAwareEntryIterator<K,V> extends ReadOnlySegmentAwareIterator<Map.Entry<K,V>>
Iterator implementation that shows a read only view of the provided iterator by only allowing values that map to a given segment using the provided consistent hash.This iterator is specifically used with the
ReadOnlySegmentAwareEntryCollectionso that it will properly filter out entries by their key instead of by the entry instance- Since:
- 7.2
- Author:
- wburns
-
-
Field Summary
-
Fields inherited from class org.infinispan.distribution.util.ReadOnlySegmentAwareIterator
allowedSegments, ch, iter, next
-
-
Constructor Summary
Constructors Constructor Description ReadOnlySegmentAwareEntryIterator(Iterator<Map.Entry<K,V>> iter, ConsistentHash ch, IntSet allowedSegments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanvalueAllowed(Object obj)-
Methods inherited from class org.infinispan.distribution.util.ReadOnlySegmentAwareIterator
findNext, 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
forEachRemaining
-
-
-
-
Method Detail
-
valueAllowed
protected boolean valueAllowed(Object obj)
- Overrides:
valueAllowedin classReadOnlySegmentAwareIterator<Map.Entry<K,V>>
-
-