I am using java to insert and retrieve records in DynamoDB.
Insertion Code
Item item_to_insert = new Item().withPrimaryKey("LatLong", key,"location_code",key)
.withJSON("location_address", jsonW.toString())
.withString("version","1");
PutItemOutcome outcome = table.putItem(item_to_insert);
Retrieving
GetItemSpec i_spec = new GetItemSpec()
.withPrimaryKey("LatLong", key,"location_code",key)
.withProjectionExpression("location_address")
.withConsistentRead(true);
Now I want to retrieve the records just using LatLong attribute which is partition key. Any Idea how to do this??