According to this documentation from AWS (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.Pagination.html), 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().
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?