DynamoDB Cookbook by Deshpande Tanmay

DynamoDB Cookbook by Deshpande Tanmay

Author:Deshpande, Tanmay
Language: eng
Format: epub, azw3
Publisher: Packt Publishing
Published: 2015-09-24T16:00:00+00:00


Now, we are going to see how to scan items from the table using the object persistence model.

Getting ready

To perform this recipe, you should have set up the project, as described in the earlier recipes, specifically, pom.xml, dependencies, and the object model.

How to do it…

Let's scan items from the table using the object persistence model:

Create an instance of the DynamoDB client class and initiate it with the credential's profile. You can also set the region if you have created the table in a specific region:AmazonDynamoDBClient client = new AmazonDynamoDBClient( new ProfileCredentialsProvider()); client.setRegion(Region.getRegion(Regions.US_EAST_1));



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.