com.newzly.phantom.batch

BatchStatement

sealed class BatchStatement extends BatchQueryListTrait[BatchStatement]

!!! Attention !!! This class is not meant to be used for concurrent operations on the same row inside the same batch. If you are updating the same record twice or performing an update and delete of the same record in the same batch, you should use timestamps to define a custom execution order.

In order to have concurrent operation on the same row in the same batch, custom timestamp needs to be inserted on each statement, using the "timestamp" method available on every batchable query(INSERT, UPDATE, DELETE).

Linear Supertypes
BatchQueryListTrait[BatchStatement], CQLQuery[BatchStatement], ExecutableStatement, CassandraResultSetOperations, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BatchStatement
  2. BatchQueryListTrait
  3. CQLQuery
  4. ExecutableStatement
  5. CassandraResultSetOperations
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BatchStatement(qbList: Iterator[BatchableQuery[_] with ExecutableStatement] = scala.`package`.Iterator.empty)

Type Members

  1. type BatchableStatement = BatchableQuery[_] with ExecutableStatement

    Definition Classes
    BatchQueryListTrait

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. final def add(statements: BatchableStatement*): BatchStatement

    Definition Classes
    BatchQueryListTrait
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def consistencyLevel: ConsistencyLevel

    Definition Classes
    CQLQuery
  10. def consistencyLevel_=(level: ConsistencyLevel): BatchStatement

    Definition Classes
    CQLQuery
  11. def create(): Batch

    Attributes
    protected[this]
    Definition Classes
    BatchStatementBatchQueryListTrait
  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. def execute()(implicit session: Session): Future[ResultSet]

    Definition Classes
    ExecutableStatement
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def forceNoValues_=(flag: Boolean): BatchStatement

    Definition Classes
    CQLQuery
  17. def future()(implicit session: Session): Future[ResultSet]

    Definition Classes
    ExecutableStatement
  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. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. def newSubclass(sts: Iterator[BatchableStatement]): BatchStatement

    Attributes
    protected[this]
    Definition Classes
    BatchStatementBatchQueryListTrait
  23. final def notify(): Unit

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

    Definition Classes
    AnyRef
  25. val qb: Batch

    Attributes
    protected[com.newzly.phantom]
    Definition Classes
    BatchQueryListTraitExecutableStatement
  26. def queryString: String

    Definition Classes
    CQLQuery
  27. def retryPolicy(): RetryPolicy

    Definition Classes
    CQLQuery
  28. def retryPolicy_=(policy: RetryPolicy): BatchStatement

    Definition Classes
    CQLQuery
  29. def routingKey(): ByteBuffer

    Definition Classes
    CQLQuery
  30. def scalaFutureToTwitter[R](future: Future[R])(implicit ctx: ExecutionContext): Future[R]

    Attributes
    protected[this]
    Definition Classes
    CassandraResultSetOperations
  31. def scalaQueryStringExecuteToFuture(query: String)(implicit session: Session): Future[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraResultSetOperations
  32. def scalaStatementToFuture(s: Statement)(implicit session: Session): Future[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraResultSetOperations
  33. def serialConsistencyLevel: ConsistencyLevel

    Definition Classes
    CQLQuery
  34. def serialConsistencyLevel_=(level: ConsistencyLevel): BatchStatement

    Definition Classes
    CQLQuery
  35. def setFetchSize(n: Int): CQLQuery[BatchStatement] with BatchStatement

    Definition Classes
    CQLQuery
  36. lazy val statements: Iterator[BatchableStatement]

    Attributes
    protected[this]
    Definition Classes
    BatchQueryListTrait
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. final def timestamp(t: Long): BatchStatement

    Definition Classes
    BatchQueryListTrait
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. def tracing_=(flag: Boolean): BatchStatement

    Definition Classes
    CQLQuery
  41. def twitterQueryStringExecuteToFuture(query: String)(implicit session: Session): Future[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraResultSetOperations
  42. def twitterStatementToFuture(s: Statement)(implicit session: Session): Future[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraResultSetOperations
  43. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CQLQuery[BatchStatement]

Inherited from ExecutableStatement

Inherited from CassandraResultSetOperations

Inherited from AnyRef

Inherited from Any

Ungrouped