io.atlassian.aws.dynamodb

Table

trait Table extends Queries

A key-value table.

Implementations have concrete key and value types, as well as queryable hash and range types.

Table returns DBActions that are pure values (DBOps that line inside Free) and can be chained together with map/flatMap (ie. there is a monad for DBAction.

You can get an interpreter for DBActions (to any arbitrary C[_]) by supplying a DBOp ~> C natural transformation.

Linear Supertypes
Queries, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Table
  2. Queries
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type DBAction[A] = Free[[x]Coyoneda[DBOp, x], A]

  2. sealed trait DBOp[A] extends AnyRef

  3. abstract type H

    the Hash type

    the Hash type

    Definition Classes
    Queries
  4. abstract type K

  5. sealed trait Query extends AnyRef

    Definition Classes
    Queries
  6. abstract type R

    the Range type

    the Range type

    Definition Classes
    Queries
  7. abstract type V

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. object DBOp

  7. implicit val MonadDBAction: Monad[DBAction]

  8. object Query

    Definition Classes
    Queries
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def batchDelete(keys: List[K]): DBAction[Map[K, V]]

    Perform a batch delete operation using the given keys.

    Perform a batch delete operation using the given keys. DynamoDB has the following restrictions:

    • we can only batch delete 25 items at a time
    keys

    the keys to delete in the batch

    returns

    Map of key -> values that failed to be deleted

  11. def batchPut(vals: Map[K, V]): DBAction[Map[K, V]]

    Perform a batch put operation using the given key -> value pairs.

    Perform a batch put operation using the given key -> value pairs. DynamoDB has the following restrictions:

    • item size must be < 64kb
    • we can only batch put 25 items at a time
    vals

    the vals to put in the batch

    returns

    Map of key -> values that failed to be saved

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def delete(k: K): DBAction[Unit]

  14. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def get(k: K): DBAction[Option[V]]

  18. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  21. implicit def lift[A](op: DBOp[A]): DBAction[A]

  22. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  25. def put(k: K, v: V): DBAction[Result[V, Overwrite.type]]

  26. def putIfAbsent(k: K, v: V): DBAction[Result[V, Insert.type]]

  27. def query(q: Query): DBAction[dynamodb.Page[R, V]]

  28. def replace(k: K, old: V, v: V): DBAction[Result[V, Replace.type]]

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

    Definition Classes
    AnyRef
  30. def tableExists: DBAction[Boolean]

  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. def transform[C[_]](op2c: ~>[DBOp, C])(implicit arg0: Monad[C]): ~>[DBAction, C]

    Turn a natural transform from DBOp to C into a DBAction to C

  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Queries

Inherited from AnyRef

Inherited from Any

Ungrouped