How to do Query in DynamoDB on the basis of HashKey and range Key?

后端 未结 3 2212
盖世英雄少女心
盖世英雄少女心 2021-02-19 11:08

I am new to DynamoDb stuff. I just want to know how can we query on a table in DynamoDB with the hashKey and rangeKey.

Let\'s say

3条回答
  •  花落未央
    2021-02-19 11:33

    You could use dynamoDbMapper.load() as following:

    TestTable testTable = new TestTable();
    testTable.setId("123");
    testTable.setDate("1234");
    TestTable result = dynamoDBMapper.load(testTable);
    

提交回复
热议问题