Graphical design component

r2 - 28 Nov 2005 - 10:38:26 - RogerHyamYou are here: TWiki >  TIP Web > TaxonAPI > TaxonAPIPaging

How paging works in TaxonAPI

Some of the responses to calls may exceed a size that a publisher wishes to issue in one chunk or is reasonable for the client to receive. Some methods therefore implement paging. These methods accept two parameters to subset the total result.

Parameter Name Notes
start The index of the first record to be returned. Defaults to zero
limit The maximum number of results to be returned. Default is publisher dependent

Paging assumes sorting

All paging must assume sorting i.e. requesting a subset of a set of results by index value assumes that different calls to the same method produce results in the same order. It would be no good if the pages of a book were in different orders each time it was opened! For this reason all result sets are assumed to be sorted by object ID i.e. the TaxonName ID or TaxonConcept ID. It doesn't matter what the ordering is as long it is consistent.

-- RogerHyam - 24 Nov 2005

Edit | Attach | Printable | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Back to TDWG Homepage TDWG Wiki > TIP
This site is powered by the TWiki collaboration platform

Valid XHTML 1.0 Transitional
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback