maheshwarirohit87 / typica

Automatically exported from code.google.com/p/typica
Apache License 2.0
0 stars 0 forks source link

listItems() only returns 100 items ? #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

ex:

QueryResult res = sdbDomain.listItems()
List<Item> itemList = result.getItemList()
int num_items = itemList.size() // returns 100 

What is the expected output? What do you see instead?

The docs state that listItems will "list all items in the domain", but I
seem to get a max of 100.

What version of the product are you using? On what operating system?

1.5

Please provide any additional information below.

I can't find an example of paginating through a domain with typical. Would
it be possible to provide one?

Original issue reported on code.google.com by twslank...@gmail.com on 4 Jun 2009 at 1:19

GoogleCodeExporter commented 9 years ago
You need to use nextToken. This isn't really documented in the Typica API docs, 
but
it's clear from Amazon's documentation.

Original comment by kevin...@gmail.com on 8 Jun 2009 at 7:34

GoogleCodeExporter commented 9 years ago
Thanks! It works like a charm.
Cheers,
Tom

Original comment by twslank...@gmail.com on 8 Jun 2009 at 8:12

GoogleCodeExporter commented 9 years ago
while this isn't a typica issue per se, I ought to have some sample code posted 
that shows this.

David

Original comment by dkavan...@gmail.com on 16 Aug 2009 at 1:41