+ DynamoDBRangeKey.class);
}
rangeKeyElement = getRangeKeyElement(rangeKey, rangeKeyMethod);
}
GetItemResult item = db.getItem(applyUserAgent(new GetItemRequest().withTableName(tableName)
.withKey(new Key().withHashKeyElement(hashKeyElement).withRangeKeyElement(rangeKeyElement))
.withConsistentRead(config.getConsistentReads() == ConsistentReads.CONSISTENT)));
Map<String, AttributeValue> itemAttributes = item.getItem();
if ( itemAttributes == null ) {
return null;
}
return marshallIntoObject(clazz, itemAttributes);