|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface manages retrieval of information for multiple measurement reports.
Because the query operation could potentially return large amounts of data, the iterator design pattern is used for returning the results. An iterator is an object that is created to contain the results of an operation. The client receives a reference to the iterator as part of the information returned by the query operation. The client then invokes operations on the iterator to receive batches of results in sizes determined by the client. The iterator keeps track of how far through the results the client has progressed.
The semantic of the iterator is that it is returning a snapshot of the data matching the query expression at the moment the query was performed. If the underlying data are modified while the iteration is in progress, it will not affect the behavior of the iterator or the data values of the iterator.
The report information that is contained in this iterator must be sorted on report data creation date. If the report data is stored in files, the oldest file shall be returned first by the iterator.
Method Summary | |
ReportInfo[] |
getNext(int how_many)
Returns a list of measurement report information. |
void |
remove()
Remove the iterator. |
Method Detail |
public ReportInfo[] getNext(int how_many)
The function takes one argument that specifies the most number of items to return. The implementation can decide to return less or the requested number of items.
If zero is specified and empty list is returned.
If the iteration is empty or has reached then end, an empty array is returned.
If the argument is greater than the number of item in the iterator then all or implementation decided number of items are returned.
If the agreement plus the cursor of the iterator is greater than the number of item in the iterator, all or implementation decided number of items from the cursor to the end is returned.
how_many
- Maximum of items to return, the implementation can decide to return less.
public void remove() throws RemoveException
When the client has finished iterating through the collection, he shall call this operation to allow resources to be freed.
RemoveException
- Is raised if the removal could not be done.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |