Class KeyUtils
java.lang.Object
dev.hogwai.dynamodb.simplified.internal.KeyUtils
Utility methods for constructing DynamoDB
Key objects.-
Method Summary
Modifier and TypeMethodDescriptionstatic software.amazon.awssdk.enhanced.dynamodb.KeybuildKey(software.amazon.awssdk.services.dynamodb.model.AttributeValue partitionValue, software.amazon.awssdk.services.dynamodb.model.AttributeValue sortValue) Builds aKeyfrom partition and optional sort attribute values.
-
Method Details
-
buildKey
public static software.amazon.awssdk.enhanced.dynamodb.Key buildKey(software.amazon.awssdk.services.dynamodb.model.AttributeValue partitionValue, software.amazon.awssdk.services.dynamodb.model.AttributeValue sortValue) Builds aKeyfrom partition and optional sort attribute values.- Parameters:
partitionValue- the partition key attribute valuesortValue- the sort key attribute value, ornullif the table has no sort key- Returns:
- the constructed key
-