amazon web services - Pagination with DynamoDBMapper Java AWS SDK - Stack Overflow
You have a couple different options with the DynamoDBMapper, depending on which way you want go. query - returns a PaginatedQueryList queryPage - returns a QueryResultPage scan - returns a PaginatedScanList scanPage - returns a ScanResultPage The part here is understanding the difference between the methods, and what functionality their returned objects encapsulate. I'll go over PaginatedScanList and ScanResultPage, but these methods/objects basically mirror each other. The PaginatedScanList says the following, emphasis mine: Implementation of the List interface that represents the results from a scan in AWS DynamoDB. Paginated results are loaded on demand when the user executes an operation that requires them. Some operations, such as size(), must fetch the entire list, but results are lazily fetched page by page when possible. This says that results are loaded as you iterate through the list. When you get through the first page,Read full article from amazon web services - Pagination with DynamoDBMapper Java AWS SDK - Stack Overflow
No comments:
Post a Comment