com.websudos.phantom.builder.query

AlterQuery

class AlterQuery[Table <: CassandraTable[Table, _], Record, Status <: ConsistencyBound, Chain <: WithBound] extends ExecutableStatement

Linear Supertypes
ExecutableStatement, CassandraOperations, SessionAugmenterImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AlterQuery
  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 AlterQuery(table: Table, qb: CQLQuery, 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. final def add(definition: CQLQuery): AlterQuery[Table, Record, Status, Chain]

  7. final def add(column: String, columnType: String, static: Boolean = false): AlterQuery[Table, Record, Status, Chain]

  8. final def alter[RR](columnSelect: (Table) ⇒ AbstractColumn[RR], newType: String): AlterQuery[Table, Record, Status, Chain]

  9. final def and(clause: TablePropertyClause)(implicit ev: =:=[Chain, WithChainned]): AlterQuery[Table, Record, Status, WithChainned]

    Annotations
    @implicitNotFound( ... )
  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 drop(column: String): AlterQuery[Table, Record, Status, Chain]

    Creates an ALTER drop query to drop the column from the schema definition.

    Creates an ALTER drop query to drop the column from the schema definition. It will produce the following type of queries, with the CQL serialization on the right hand side:

    MyTable.alter.drop(_.mycolumn) => ALTER TABLE MyTable DROP myColumn

    This is used mainly during the autodiffing of schemas, where column selectors are not available and we only deal with plain string diffs between table metadata collections.

    column

    The string name of the column to drop.

    returns

    A new alter query with the underlying builder containing a DROP clause.

  13. final def drop()(implicit keySpace: KeySpace): AlterQuery[Table, Record, Status, Chain]

    Creates an ALTER DROP query that drops an entire table.

    Creates an ALTER DROP query that drops an entire table. This is equivalent to table truncation followed by table removal from the keyspace metadata. This action is irreversible and you should exercise caution is using it.

    keySpace

    The implicit keyspace definition to use.

    returns

    An alter query with a DROP TABLE instruction encoded in the query string.

  14. final def drop[RR](columnSelect: (Table) ⇒ DropColumn[RR]): AlterQuery[Table, Record, Status, Chain]

    Creates an ALTER drop query to drop the column from the schema definition.

    Creates an ALTER drop query to drop the column from the schema definition. It will produce the following type of queries, with the CQL serialization on the right hand side:

    MyTable.alter.drop(_.mycolumn) => ALTER TABLE MyTable DROP myColumn
    RR

    The underlying type of the AbstractColumn.

    columnSelect

    A column selector higher order function derived from a table.

    returns

    A new alter query with the underlying builder containing a DROP clause.

  15. final def dropIfExists()(implicit keySpace: KeySpace): AlterQuery[Table, Record, Status, Chain]

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. 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
  20. 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
    ExecutableStatement
  21. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  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. final def option(clause: TablePropertyClause)(implicit ev: =:=[Chain, WithUnchainned]): AlterQuery[Table, Record, Status, WithChainned]

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

    Definition Classes
    AlterQueryExecutableStatement
  29. val qb: CQLQuery

    Definition Classes
    AlterQueryExecutableStatement
  30. def queryString: String

    Definition Classes
    ExecutableStatement
  31. final def rename[RR](select: (Table) ⇒ AbstractColumn[RR], newName: String): AlterQuery[Table, Record, Status, Chain]

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

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

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

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

    Definition Classes
    AnyRef
  36. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def with(clause: TablePropertyClause)(implicit ev: =:=[Chain, WithUnchainned]): AlterQuery[Table, Record, Status, WithChainned]

    Annotations
    @implicitNotFound( ... )

Inherited from ExecutableStatement

Inherited from CassandraOperations

Inherited from SessionAugmenterImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped