Class KeyUtils

java.lang.Object
dev.hogwai.dynamodb.simplified.internal.KeyUtils

public final class KeyUtils extends Object
Utility methods for constructing DynamoDB Key objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 a Key from partition and optional sort attribute values.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 a Key from partition and optional sort attribute values.
      Parameters:
      partitionValue - the partition key attribute value
      sortValue - the sort key attribute value, or null if the table has no sort key
      Returns:
      the constructed key