com.outworkers.phantom.finagle

ExexcutableStatementAugmenter

implicit final class ExexcutableStatementAugmenter extends AnyVal

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

Instance Constructors

  1. new ExexcutableStatementAugmenter(query: ExecutableStatement)

Value Members

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

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

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

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

    Definition Classes
    Any
  5. def execute(modifyStatement: (Statement) ⇒ Statement)(implicit session: Session, executor: ExecutionContextExecutor): Future[ResultSet]

    This will convert the underlying call to Cassandra done with Google Guava ListenableFuture to a consumable Scala Future that will be completed once the operation is completed on the database end.

    This will convert the underlying call to Cassandra done with Google Guava ListenableFuture to a consumable Scala Future that will be completed once the operation is completed on the database end.

    The execution context of the transformation is provided by phantom via Manager.scalaExecutor and it is recommended to use com.outworkers.phantom.dsl.context for operations that chain database calls.

    modifyStatement

    The function allowing to modify underlying Statement

    session

    The implicit session provided by a com.outworkers.phantom.connectors.Connector.

    executor

    The implicit Java executor.

    returns

  6. def execute()(implicit session: Session, executor: ExecutionContextExecutor): Future[ResultSet]

    Default asynchronous query execution method based on Twitter Future API.

    Default asynchronous query execution method based on Twitter Future API. This will convert the underlying call to Cassandra done with Google Guava ListenableFuture to a consumable Twitter Future that will be completed once the operation is completed on the database end.

    Unlike Scala Futures, Twitter Futures and operations on them do not require an implicit context. Instead, the context propagates from one future to another inside a flatMap chain which means all operations(map, flatMap) that originate on a Twitter Future obtained as the result of a database call will execute inside Manager.scalaExecutor.

    session

    The implicit session provided by a com.outworkers.phantom.connectors.Connector.

    executor

    The implicit Java executor.

    returns

  7. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  8. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  9. val query: ExecutableStatement

  10. def toString(): String

    Definition Classes
    Any

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Ungrouped