public class PartitionedIterator<T> extends AbstractPartitionedIterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_fKeysOnly
Differentiates between a key iterator (true) and an entry iterator (false).
|
static int |
OPT_ENTRIES
An option to iterate Map Entry objects.
|
static int |
OPT_KEYS
An option to iterate the Map keys.
|
m_cache, m_fByMember, m_filter, m_fRandom, m_setPids, OPT_BY_MEMBER, OPT_BY_PARTITION, OPT_RANDOMIZED| Constructor and Description |
|---|
PartitionedIterator(NamedCache cache, Filter filter, PartitionSet setPids, int nOptions)
Construct PartitionedIterator that will provide iteration of the keys of the specified cache using the specified filter, but will only query one partition or one member at a time.
|
| Modifier and Type | Method and Description |
|---|---|
protected Iterable<T> |
nextIterable(PartitionedFilter filter)
Obtain the next Iterable for a given filter.
|
protected void |
remove(Object oPrev)
Remove the specified item.
|
advancegetPrevious, hasMoreElements, hasNext, next, nextElement, remove, setNextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static final int OPT_KEYS
public static final int OPT_ENTRIES
protected boolean m_fKeysOnly
public PartitionedIterator(NamedCache cache, Filter filter, PartitionSet setPids, int nOptions)
cache - the cache to queryfilter - the query expressed as a FiltersetPids - the partitions to execute the query againstnOptions - pass a bit-or'd combination of any of the OPT_* constantsprotected Iterable<T> nextIterable(PartitionedFilter filter)
AbstractPartitionedIteratornextIterable in class AbstractPartitionedIterator<T>filter - filter to useprotected void remove(Object oPrev)
com.oracle.common.collections.AbstractStableIteratorThis is an optional operation. If the Iterator supports element removal, then it should implement this method, which is delegated to by the AbstractStableIterator.remove() method.
remove in class AbstractPartitionedIterator<T>oPrev - the previously iterated object that should be removed