title: How to use pagination in Amazon DynamoDB using the AWS SDK for Java
body: <p>According to this documentation from AWS (<a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.Pagination.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.Pagination.html</a>), it is possible to make paginated queries on Amazon DynamoDB, but It doesn't provide any example about how to do it. It only says to use the iterator method, that I found on PaginatedQueryList after using DynamoDBMapper.query().</p>
  <p>Could anyone explain how does it work, how to use it correctly and if it really worth using it when you don't want to retrieve all results at once from dynamoDB, like the scan opeation does?</p>