Trait

com.github.dwhjames.awswrap.dynamodb

DynamoDBSerializer

Related Doc: package dynamodb

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink

    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

    Permalink

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

  3. abstract def tableName: String

    Permalink

    The DynamoDB table that this serializer operates on.

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

    Permalink

    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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

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

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

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

    Permalink

    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]

    Permalink

    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)

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

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

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

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

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

    Permalink

    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]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped