Reputation: 147
I want to query dynamoDB by hashkey+multiple range keys... the DynamoDBQueryExpression is not ok for the api .I can not set multile range keys at the api level.what should I do
Upvotes: 0
Views: 1754
Reputation: 21184
The DynamoDBMapper
has an API for retrieving multiple items from multiple tables based on the primary key, which is documented here.
The method you're looking for is
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
batchLoad(java.util.Map<java.lang.Class<?>,java.util.List<KeyPair>> itemsToGet)
Where the KeyPair
will be used to list your Hash/Range keys
Upvotes: 1