|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.globus.replica.rls.RLSOffsetLimit
Queries that may return large result lists may use excessive server or client resources (eg memory). RLS supports both server and client side limits on the number of results returned by a query. The following class is used to retrieve results incrementally. If clients do net specify an offset and limit using this class then the API will retrieve all results on behalf of the client. Alternatively the client can pass one of the following objects to the query function and loop through the results a chunk at a time. The following are equivlent: // Get all results list = rls.LRCGetPFNWC("*"); // process results // Get results 5 at a time RLSOffsetLimit offlim = newRLSOffsetLimit(0,5); while (true) { list = rls.LRCGetLFNWC("*", offlim); // process results if (offlim.offset == -1) // offset is set to -1 when no more results break; }
| Field Summary | |
int |
offset
|
int |
reslimit
|
| Constructor Summary | |
RLSOffsetLimit()
|
|
RLSOffsetLimit(int ioffset,
int ireslimit)
|
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int offset
public int reslimit
| Constructor Detail |
public RLSOffsetLimit()
public RLSOffsetLimit(int ioffset,
int ireslimit)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||