Class

com.websudos.phantom.finagle

ExexcutableStatementAugmenter

Related Doc: package finagle

Permalink

implicit final class ExexcutableStatementAugmenter extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExexcutableStatementAugmenter
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExexcutableStatementAugmenter(query: ExecutableStatement)

    Permalink

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def execute(modifyStatement: Modifier)(implicit session: Session, keySpace: KeySpace, executor: Executor): Future[ResultSet]

    Permalink

    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 com.websudos.phantom.Manager.scalaExecutor and it is recommended to use com.websudos.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.websudos.phantom.connectors.Connector.

    keySpace

    The implicit keySpace definition provided by a com.websudos.phantom.connectors.Connector.

    executor

    The implicit Java executor.

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

    Permalink

    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 com.websudos.phantom.Manager.executor.

    session

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

    keySpace

    The implicit keySpace definition provided by a com.websudos.phantom.connectors.Connector.

    executor

    The implicit Java executor.

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

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

    Permalink
    Definition Classes
    Any
  9. val query: ExecutableStatement

    Permalink
  10. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped