The Scan operation returns one or more items and item attributes by accessing every item in the table. To have Amazon DynamoDB return fewer items, you can provide a ScanFilter .
If the total number of scanned items exceeds the maximum data set size limit of 1 MB, the scan stops and results are returned to the user with a LastEvaluatedKey to continue the scan in a subsequent operation. The results also include the number of items exceeding the limit. A scan can result in no table data meeting the filter criteria.
The result set is eventually consistent.
By default, Scan operations proceed sequentially; however, for faster performance on large tables, applications can request a parallel Scan by specifying the Segment and TotalSegments parameters. For more information, see Parallel Scan in the Amazon DynamoDB Developer Guide.
@param scanRequest Container for the necessary parameters to executethe Scan service method on AmazonDynamoDBv2.
@return The response from the Scan service method, as returned byAmazonDynamoDBv2.
@throws ResourceNotFoundException
@throws ProvisionedThroughputExceededException
@throws InternalServerErrorException
@throws AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
@throws AmazonServiceException If an error response is returned by AmazonDynamoDBv2 indicating either a problem with the data in the request, or a server side issue.