Trait

io.atlassian.aws.dynamodb

Table

Related Doc: package dynamodb

Permalink

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

Type Members

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

    Permalink
  2. sealed trait DBOp[A] extends AnyRef

    Permalink
  3. abstract type H

    Permalink

    the Hash type

    the Hash type

    Definition Classes
    Queries
  4. abstract type K

    Permalink
  5. sealed trait Query extends AnyRef

    Permalink
    Definition Classes
    Queries
  6. abstract type R

    Permalink

    the Range type

    the Range type

    Definition Classes
    Queries
  7. abstract type V

    Permalink

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. object DBOp

    Permalink
  5. implicit val MonadDBAction: Monad[DBAction]

    Permalink
  6. object Query

    Permalink
    Definition Classes
    Queries
  7. final def asInstanceOf[T0]: T0

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

    Permalink

    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

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

    Permalink

    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

  10. def clone(): AnyRef

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

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
  16. final def getClass(): Class[_]

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

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

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

    Permalink
  20. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  28. def tableExists: DBAction[Boolean]

    Permalink
  29. def toString(): String

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

    Permalink

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

  31. final def wait(): Unit

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

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

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

Inherited from Queries

Inherited from AnyRef

Inherited from Any

Ungrouped