com.websudos.phantom.batch

BatchQuery

sealed class BatchQuery[Status <: ConsistencyBound] extends ExecutableStatement

Linear Supertypes
ExecutableStatement, CassandraOperations, SessionAugmenterImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BatchQuery
  2. ExecutableStatement
  3. CassandraOperations
  4. SessionAugmenterImplicits
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BatchQuery(iterator: Iterator[_ <: Statement], batchType: BatchType, usingPart: UsingPart = ..., added: Boolean = false, options: QueryOptions)

Type Members

  1. type Modifier = (Statement) ⇒ Statement

    Definition Classes
    ExecutableStatement
  2. implicit class RichSession extends SessionAugmenter

    Definition Classes
    SessionAugmenterImplicits

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. def add(batch: BatchQuery[_]): BatchQuery[Status]

    Adds the statement of another query to the statements of this batch query.

    Adds the statement of another query to the statements of this batch query.

    batch

    A batch query.

    returns

    A batch query with the same consistencyLevel as the original query.

  7. def add(queries: Iterator[Batchable with ExecutableStatement])(implicit session: Session): BatchQuery[Status]

  8. def add(queries: Batchable with ExecutableStatement*)(implicit session: Session): BatchQuery[Status]

  9. def add(query: Batchable with ExecutableStatement)(implicit session: Session): BatchQuery[Status]

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def consistencyLevel_=(level: ConsistencyLevel)(implicit ev: =:=[Status, Unspecified], session: Session): BatchQuery[Specified]

    Annotations
    @implicitNotFound( ... )
  13. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def future()(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[ResultSet]

    Default asynchronous query execution method.

    Default asynchronous query execution method. 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.

    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.

    ec

    The implicit Scala execution context.

    returns

    An asynchronous Scala future wrapping the Datastax result set.

    Definition Classes
    BatchQueryExecutableStatement
  17. def future(modifyStatement: (Statement) ⇒ Statement)(implicit session: Session, keySpace: KeySpace, 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 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 Scala executor.

    returns

    An asynchronous Scala future wrapping the Datastax result set.

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

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

    Definition Classes
    AnyRef → Any
  20. def initBatch(): BatchStatement

  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. val iterator: Iterator[_ <: Statement]

  23. def makeBatch()(implicit session: Session): Statement

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

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

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

    Definition Classes
    AnyRef
  27. val options: QueryOptions

    Definition Classes
    BatchQueryExecutableStatement
  28. def qb: CQLQuery

    Definition Classes
    BatchQueryExecutableStatement
  29. def queryString: String

    Definition Classes
    ExecutableStatement
  30. def scalaQueryStringExecuteToFuture(st: Statement)(implicit session: Session, keyspace: KeySpace, executor: ExecutionContextExecutor): Future[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  31. def scalaQueryStringToPromise(st: Statement)(implicit session: Session, keyspace: KeySpace, executor: ExecutionContextExecutor): Promise[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  32. def statement()(implicit session: Session): Statement

    Definition Classes
    ExecutableStatement
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def timestamp(stamp: Long): BatchQuery[Status]

  35. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ExecutableStatement

Inherited from CassandraOperations

Inherited from SessionAugmenterImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped