|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.AbstractStableIterator
com.tangosol.net.partition.PartitionedIterator
public class PartitionedIterator
An Iterator that iterates over keys in a partition-by-partition or member-by-member manner.
Field Summary | |
---|---|
static int |
OPT_BY_MEMBER An option to iterate one member at a time. |
static int |
OPT_BY_PARTITION An option to iterate one partition at a time. |
static int |
OPT_ENTRIES An option to iterate Map Entry objects. |
static int |
OPT_KEYS An option to iterate the Map keys. |
static int |
OPT_RANDOMIZED An option to iterate the members or partitions in a randomized order. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
protected void |
advance() Advance to the next object. |
protected void |
remove(java.lang.Object oPrev) Remove the specified item. |
Methods inherited from class com.tangosol.util.AbstractStableIterator |
---|
getPrevious, hasNext, next, remove, setNext |
Field Detail |
---|
public static final int OPT_KEYS
public static final int OPT_ENTRIES
public static final int OPT_BY_PARTITION
public static final int OPT_BY_MEMBER
public static final int OPT_RANDOMIZED
Constructor Detail |
---|
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_* constantsMethod Detail |
---|
protected void advance()
This method must be implemented by the concrete sub-class by calling AbstractStableIterator.setNext(java.lang.Object)
if there is a next object.
advance
in class AbstractStableIterator
protected void remove(java.lang.Object oPrev)
This 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 AbstractStableIterator
oPrev
- the previously iterated object that should be removed
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |