public interface IHeapObjectArgument extends Iterable<int[]>
@Argument public IHeapObjectArgument objects; public IResult execute(IProgressListener listener) throws Exception { for (int[] objectIds : objects) { for (int objectId : objectIds) { // do something } } }
There are two advantages over using primitive Integer arrays: First, the object set is chunked (if accessed through the iterator) and second, there is no need to annotate the variable with isHeapObject = true.
@Argument(isHeapObject = true) public int[] objects;
Modifier and Type | Method and Description |
---|---|
int[] |
getIds(IProgressListener listener)
This method returns one (possibly big) integer array with the selected
object ids.
|
String |
getLabel()
A user-friendly label for the object set.
|
forEach, iterator, spliterator
int[] getIds(IProgressListener listener) throws SnapshotException
listener
- progress listenerSnapshotException
String getLabel()