Class/Object

com.outworkers.phantom.builder.query

CreateQuery

Related Docs: object CreateQuery | package query

Permalink

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
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)

    Permalink

Type Members

  1. type Modifier = (Statement) ⇒ Statement

    Permalink
    Definition Classes
    ExecutableStatement
  2. implicit class RichSession extends SessionAugmenter

    Permalink
    Definition Classes
    SessionAugmenterImplicits

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def and(clause: TablePropertyClause): CreateQuery[Table, Record, Status]

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

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink

    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
  12. def future(modifyStatement: Modifier)(implicit session: Session, executor: ExecutionContextExecutor): 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.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
  13. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. val init: CQLQuery

    Permalink
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. implicit val keySpace: KeySpace

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

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

    Permalink
    Annotations
    @implicitNotFound( ... )
  22. val options: QueryOptions

    Permalink
    Definition Classes
    CreateQueryExecutableStatement
  23. def qb: CQLQuery

    Permalink
    Definition Classes
    CreateQueryExecutableStatement
  24. def queryString: String

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  29. val table: Table

    Permalink
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. val usingPart: UsingPart

    Permalink
  32. final def wait(): Unit

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

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

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

    Permalink
    Annotations
    @implicitNotFound( ... )
  36. val withClause: WithPart

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

    Permalink

    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