|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IHeapObjectArgument
An argument of type IHeapObjectArgument can be used to inject heap objects into Query.
@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;
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
int[] getIds(IProgressListener listener)
throws SnapshotException
listener - progress listener
SnapshotExceptionString getLabel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||