com.github.dwhjames.awswrap.dynamodb

DynamoDBSerializer

Related Doc: package dynamodb

trait DynamoDBSerializer[T] extends AnyRef

A trait for serializers that convert Scala objects to and from DynamoDB items.

T

the object type of this serializer

Source
mapper.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DynamoDBSerializer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def fromAttributeMap(item: Map[String, AttributeValue]): T

    Converts a DynamoDB item into a Scala object.

    Converts a DynamoDB item into a Scala object.

    item

    A map from attribute names to attribute values.

    returns

    the deserialized object of type T.

  2. abstract def hashAttributeName: String

    The name of the attribute that forms the primary hash key.

  3. abstract def tableName: String

    The DynamoDB table that this serializer operates on.

  4. abstract def toAttributeMap(obj: T): Map[String, AttributeValue]

    Converts a Scala object into a DynamoDB item.

    Converts a Scala object into a DynamoDB item.

    obj

    An object of type T.

    returns

    a map from attribute names to attribute values.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. def makeKey[K1, K2](hashKey: K1, rangeKey: K2)(implicit conv1: (K1) ⇒ AttributeValue, conv2: (K2) ⇒ AttributeValue): Map[String, AttributeValue]

    Converts hash and range key values into a DynamoDB key.

    Converts hash and range key values into a DynamoDB key.

    The key is represented as a map.

    hashKey

    An value that is convertable to an AttributeValue.

    rangeKey

    An value that is convertable to an AttributeValue.

    returns

    a map from attribute names to attribute values.

  13. def makeKey[K](hashKey: K)(implicit conv: (K) ⇒ AttributeValue): Map[String, AttributeValue]

    Converts a hash key value into a DynamoDB key.

    Converts a hash key value into a DynamoDB key.

    The key is represented as a map.

    hashKey

    An value that is convertable to an AttributeValue.

    returns

    a map from attribute names to attribute values.

  14. def mkAttribute[K](pair: (String, K))(implicit conv: (K) ⇒ AttributeValue): (String, AttributeValue)

    Attributes
    protected
  15. def mkAttribute[K](name: String, value: K)(implicit conv: (K) ⇒ AttributeValue): (String, AttributeValue)

    Attributes
    protected
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def primaryKeyOf(obj: T): Map[String, AttributeValue]

    Converts a Scala object into a DynamoDB key.

    Converts a Scala object into a DynamoDB key.

    The key is represented as a map. The concrete implementation of a serializer may want to override this method for efficiency reasons, as the default implementation uses toAttributeMap.

    obj

    An object of type T.

    returns

    a map from attribute names to attribute values.

  20. def rangeAttributeName: Option[String]

    The name of the attribute that forms the primary range key.

    The name of the attribute that forms the primary range key.

    This is optional, as a table may not have a range key.

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped