com.outworkers.phantom.builder.query

CreateQuery

class CreateQuery[Table <: CassandraTable[Table, _], Record, Status <: ConsistencyBound] extends ExecutableStatement

Linear Supertypes
ExecutableStatement, CassandraOperations, SessionAugmenterImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CreateQuery
  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 CreateQuery(table: Table, init: CQLQuery, withClause: WithPart = WithPart.empty, usingPart: UsingPart = UsingPart.empty, options: QueryOptions = QueryOptions.empty)(implicit keySpace: KeySpace)

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. final def and(clause: TablePropertyClause): CreateQuery[Table, Record, Status]

    Annotations
    @implicitNotFound( ... )
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def batchToPromise(batch: BatchWithQuery)(implicit session: Session, executor: ExecutionContextExecutor): Promise[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def consistencyLevel_=(level: ConsistencyLevel)(implicit session: Session): CreateQuery[Table, Record, Specified]

  11. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def future()(implicit session: Session, 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.outworkers.phantom.Manager.scalaExecutor and it is recommended to use com.outworkers.phantom.dsl.context for operations that chain database calls.

    session

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

    ec

    The implicit Scala execution context.

    returns

    An asynchronous Scala future wrapping the Datastax result set.

    Definition Classes
    CreateQueryExecutableStatement
  15. def future(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 com.outworkers.phantom.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 Scala executor.

    returns

    An asynchronous Scala future wrapping the Datastax result set.

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

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

    Definition Classes
    AnyRef → Any
  18. val init: CQLQuery

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. implicit val keySpace: KeySpace

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

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

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

    Definition Classes
    AnyRef
  24. final def option(clause: TablePropertyClause): CreateQuery[Table, Record, Status]

    Annotations
    @implicitNotFound( ... )
  25. val options: QueryOptions

    Definition Classes
    CreateQueryExecutableStatement
  26. def qb: CQLQuery

    Definition Classes
    CreateQueryExecutableStatement
  27. def queryString: String

    Definition Classes
    ExecutableStatement
  28. def statement()(implicit session: Session): Statement

    Definition Classes
    ExecutableStatement
  29. def statementToFuture(st: Statement)(implicit session: Session, executor: ExecutionContextExecutor): Future[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  30. def statementToPromise(st: Statement)(implicit session: Session, executor: ExecutionContextExecutor): Promise[ResultSet]

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

    Definition Classes
    AnyRef
  32. val table: Table

  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. val usingPart: UsingPart

  35. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def with(clause: TablePropertyClause): CreateQuery[Table, Record, Status]

    Annotations
    @implicitNotFound( ... )
  39. val withClause: WithPart

  40. final def withClustering(): CreateQuery[Table, Record, Status]

    Used to automatically define a CLUSTERING ORDER BY clause using the columns already defined in the table.

    Used to automatically define a CLUSTERING ORDER BY clause using the columns already defined in the table. This will use the built in reflection mechanism to fetch all columns defined inside a table. It will then filter the columns that mix in a definition of a clustering key.

    returns

    A new Create query, where the builder contains a full clustering clause specified.

Inherited from ExecutableStatement

Inherited from CassandraOperations

Inherited from SessionAugmenterImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped