Package org.infinispan.distribution.util
Class ReadOnlySegmentAwareIterator<E>
java.lang.Object
org.infinispan.distribution.util.ReadOnlySegmentAwareIterator<E>
- All Implemented Interfaces:
Iterator<E>
- Direct Known Subclasses:
ReadOnlySegmentAwareEntryIterator
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 used with the other various SegmentAware Collections such as
ReadOnlySegmentAwareCollection
- Since:
- 7.2
- Author:
- wburns
-
Field Summary
Modifier and TypeFieldDescriptionprotected final IntSet
protected E
protected final LocalizedCacheTopology
-
Constructor Summary
ConstructorDescriptionReadOnlySegmentAwareIterator
(Iterator<E> iter, LocalizedCacheTopology topology, IntSet allowedSegments) -
Method Summary
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
-
Field Details
-
iter
-
topology
-
allowedSegments
-
next
-
-
Constructor Details
-
ReadOnlySegmentAwareIterator
public ReadOnlySegmentAwareIterator(Iterator<E> iter, LocalizedCacheTopology topology, IntSet allowedSegments)
-
-
Method Details