Packages

final class CassandraSession extends AnyRef

Data Access Object for Cassandra. The statements are expressed in Cassandra Query Language (CQL) syntax.

The configured keyspace is automatically created if it doesn't already exists. The keyspace is also set as the current keyspace, i.e. it doesn't have to be qualified in the statements.

All methods are non-blocking.

Source
CassandraSession.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CassandraSession
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CassandraSession(system: ActorSystem)
  2. new CassandraSession(system: ActorSystem, settings: CassandraSessionSettings, executionContext: ExecutionContext)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from CassandraSession to any2stringadd[CassandraSession] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (CassandraSession, B)
    Implicit
    This member is added by an implicit conversion from CassandraSession to ArrowAssoc[CassandraSession] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def ensuring(cond: (CassandraSession) ⇒ Boolean, msg: ⇒ Any): CassandraSession
    Implicit
    This member is added by an implicit conversion from CassandraSession to Ensuring[CassandraSession] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (CassandraSession) ⇒ Boolean): CassandraSession
    Implicit
    This member is added by an implicit conversion from CassandraSession to Ensuring[CassandraSession] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): CassandraSession
    Implicit
    This member is added by an implicit conversion from CassandraSession to Ensuring[CassandraSession] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): CassandraSession
    Implicit
    This member is added by an implicit conversion from CassandraSession to Ensuring[CassandraSession] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def executeCreateTable(stmt: String): Future[Done]

    See Creating a table.

    See Creating a table.

    The returned CompletionStage is completed when the table has been created, or if the statement fails.

  15. def executeWrite(stmt: String, bindValues: AnyRef*): Future[Done]

    Prepare, bind and execute one statement in one go.

    Prepare, bind and execute one statement in one go.

    See Inserting and updating data.

    The configured write consistency level is used.

    The returned CompletionStage is completed when the statement has been successfully executed, or if it fails.

    Annotations
    @varargs()
  16. def executeWrite(stmt: Statement): Future[Done]

    Execute one statement.

    Execute one statement. First you must #prepare the statement and bind its parameters.

    See Inserting and updating data.

    The configured write consistency level is used if a specific consistency level has not been set on the Statement.

    The returned CompletionStage is completed when the statement has been successfully executed, or if it fails.

  17. def executeWriteBatch(batch: BatchStatement): Future[Done]

    Execute several statements in a batch.

    Execute several statements in a batch. First you must #prepare the statements and bind its parameters.

    See Batching data insertion and updates.

    The configured write consistency level is used if a specific consistency level has not been set on the BatchStatement.

    The returned CompletionStage is completed when the batch has been successfully executed, or if it fails.

  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from CassandraSession to StringFormat[CassandraSession] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def prepare(stmt: String): Future[PreparedStatement]

    Create a PreparedStatement that can be bound and used in executeWrite or select multiple times.

  27. def select(stmt: String, bindValues: AnyRef*): Source[Row, NotUsed]

    Prepare, bind and execute a select statement in one go.

    Prepare, bind and execute a select statement in one go.

    See Querying tables.

    The configured read consistency level is used.

    You can return this Source as a response in a ServiceCall and the elements will be streamed to the client. Otherwise you have to connect a Sink that consumes the messages from this Source and then run the stream.

    Annotations
    @varargs()
  28. def select(stmt: Statement): Source[Row, NotUsed]

    Execute a select statement.

    Execute a select statement. First you must #prepare the statement and bind its parameters.

    See Querying tables.

    The configured read consistency level is used if a specific consistency level has not been set on the Statement.

    You can return this Source as a response in a ServiceCall and the elements will be streamed to the client. Otherwise you have to connect a Sink that consumes the messages from this Source and then run the stream.

  29. def selectAll(stmt: String, bindValues: AnyRef*): Future[Seq[Row]]

    Prepare, bind and execute a select statement in one go.

    Prepare, bind and execute a select statement in one go. Only use this method when you know that the result is small, e.g. includes a LIMIT clause. Otherwise you should use the select method that returns a Source.

    The configured read consistency level is used.

    The returned CompletionStage is completed with the found rows.

    Annotations
    @varargs()
  30. def selectAll(stmt: Statement): Future[Seq[Row]]

    Execute a select statement.

    Execute a select statement. First you must #prepare the statement and bind its parameters. Only use this method when you know that the result is small, e.g. includes a LIMIT clause. Otherwise you should use the select method that returns a Source.

    The configured read consistency level is used if a specific consistency level has not been set on the Statement.

    The returned CompletionStage is completed with the found rows.

  31. def selectOne(stmt: String, bindValues: AnyRef*): Future[Option[Row]]

    Prepare, bind and execute a select statement that returns one row.

    Prepare, bind and execute a select statement that returns one row.

    The configured read consistency level is used.

    The returned CompletionStage is completed with the first row, if any.

    Annotations
    @varargs()
  32. def selectOne(stmt: Statement): Future[Option[Row]]

    Execute a select statement that returns one row.

    Execute a select statement that returns one row. First you must #prepare the statement and bind its parameters.

    The configured read consistency level is used if a specific consistency level has not been set on the Statement.

    The returned CompletionStage is completed with the first row, if any.

  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. def underlying(): Future[Session]

    The Session of the underlying Datastax Java Driver.

    The Session of the underlying Datastax Java Driver. Can be used in case you need to do something that is not provided by the API exposed by this class. Be careful to not use blocking calls.

  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( ... ) @native()
  39. def [B](y: B): (CassandraSession, B)
    Implicit
    This member is added by an implicit conversion from CassandraSession to ArrowAssoc[CassandraSession] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from CassandraSession to any2stringadd[CassandraSession]

Inherited by implicit conversion StringFormat from CassandraSession to StringFormat[CassandraSession]

Inherited by implicit conversion Ensuring from CassandraSession to Ensuring[CassandraSession]

Inherited by implicit conversion ArrowAssoc from CassandraSession to ArrowAssoc[CassandraSession]

Ungrouped