com.websudos.phantom.builder.query

DeleteQuery

class DeleteQuery[Table <: CassandraTable[Table, _], Record, Limit <: LimitBound, Order <: OrderBound, Status <: ConsistencyBound, Chain <: WhereBound, PS <: HList] extends Query[Table, Record, Limit, Order, Status, Chain, PS] with Batchable

Linear Supertypes
Batchable, Query[Table, Record, Limit, Order, Status, Chain, PS], ExecutableStatement, CassandraOperations, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DeleteQuery
  2. Batchable
  3. Query
  4. ExecutableStatement
  5. CassandraOperations
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DeleteQuery(table: Table, init: CQLQuery, wherePart: WherePart = WherePart.empty, casPart: CompareAndSetPart = CompareAndSetPart.empty, usingPart: UsingPart = UsingPart.empty, options: QueryOptions = QueryOptions.empty)

Type Members

  1. type QueryType[T <: CassandraTable[T, _], R, L <: LimitBound, O <: OrderBound, S <: ConsistencyBound, C <: WhereBound, P <: HList] = DeleteQuery[T, R, L, O, S, C, P]

    Attributes
    protected[this]
    Definition Classes
    DeleteQueryQuery
  2. implicit class RichSession extends AnyRef

    Definition Classes
    CassandraOperations

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. def and(condition: (Table) ⇒ clauses.WhereClause.Condition)(implicit ev: =:=[Chain, Chainned]): DeleteQuery[Table, Record, Limit, Order, Status, Chainned, PS]

    And clauses require overriding for count queries for the same purpose.

    And clauses require overriding for count queries for the same purpose. Without this override, the CQL query executed to fetch the count would still have a "LIMIT 1".

    condition

    The Query condition to execute, based on index operators.

    returns

    A SelectCountWhere.

    Definition Classes
    DeleteQueryQuery
    Annotations
    @implicitNotFound( ... )
  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_=(level: ConsistencyLevel)(implicit ev: =:=[Status, Unspecified], session: Session): DeleteQuery[Table, Record, Limit, Order, Specified, Chain, PS]

    Definition Classes
    DeleteQueryQuery
  10. def create[T <: CassandraTable[T, _], R, L <: LimitBound, O <: OrderBound, S <: ConsistencyBound, C <: WhereBound, P <: HList](t: T, q: CQLQuery, r: (Row) ⇒ R, part: UsingPart, options: QueryOptions): QueryType[T, R, L, O, S, C, P]

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

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

    Definition Classes
    AnyRef → Any
  13. def execute()(implicit session: Session, keySpace: KeySpace): Future[ResultSet]

    Default asynchronous query execution method based on Twitter Future API.

    Default asynchronous query execution method based on Twitter Future API. This will convert the underlying call to Cassandra done with Google Guava ListenableFuture to a consumable Twitter Future that will be completed once the operation is completed on the database end.

    Unlike Scala Futures, Twitter Futures and operations on them do not require an implicit context. Instead, the context propagates from one future to another inside a flatMap chain which means all operations(map, flatMap) that originate on a Twitter Future obtained as the result of a database call will execute inside com.websudos.phantom.Manager.executor.

    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.

    returns

    Definition Classes
    ExecutableStatement
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def future()(implicit session: Session, keySpace: KeySpace): 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.

    returns

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

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

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

    Definition Classes
    Any
  19. def limit(limit: Int)(implicit ev: =:=[Limit, Unlimited]): QueryType[Table, Record, Limited, Order, Status, Chain, PS]

    Definition Classes
    Query
    Annotations
    @implicitNotFound( ... )
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. def onlyIf(clause: (Table) ⇒ Condition): ConditionalDeleteQuery[Table, Record, Limit, Order, Status, Chain, PS]

    Generates a conditional query clause based on CQL lightweight transactions.

    Generates a conditional query clause based on CQL lightweight transactions. Compare and set transactions only get executed if a particular condition is true.

    clause

    The Compare-And-Set clause to append to the builder.

    returns

    A conditional query, now bound by a compare-and-set part.

  24. val options: QueryOptions

    Definition Classes
    DeleteQueryQueryExecutableStatement
  25. def p_and[RR](condition: (Table) ⇒ clauses.PreparedWhereClause.ParametricCondition[RR])(implicit ev: =:=[Chain, Chainned]): DeleteQuery[Table, Record, Limit, Order, Status, Chainned, ::[RR, PS]]

    The and operator that adds parametric condition to the where predicates.

    The and operator that adds parametric condition to the where predicates.

    condition

    A where clause condition restricted by path dependant types.

    ev

    An evidence request guaranteeing the user cannot chain multiple where clauses on the same query.

    returns

    Annotations
    @implicitNotFound( ... )
  26. def p_where[RR](condition: (Table) ⇒ clauses.PreparedWhereClause.ParametricCondition[RR])(implicit ev: =:=[Chain, Unchainned]): DeleteQuery[Table, Record, Limit, Order, Status, Chainned, ::[RR, PS]]

    The where method of a select query that takes parametric predicate as an argument.

    The where method of a select query that takes parametric predicate as an argument.

    condition

    A where clause condition restricted by path dependant types.

    ev

    An evidence request guaranteeing the user cannot chain multiple where clauses on the same query.

    returns

    Annotations
    @implicitNotFound( ... )
  27. def prepare()(implicit session: Session, keySpace: KeySpace, ev: =:!=[PS, HNil]): PreparedBlock[PS]

  28. val qb: CQLQuery

    Definition Classes
    DeleteQueryQueryExecutableStatement
  29. def queryString: String

    Definition Classes
    ExecutableStatement
  30. def scalaQueryStringExecuteToFuture(st: Statement)(implicit session: Session, keyspace: KeySpace): Future[ResultSet]

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

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

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

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. def ttl(duration: Duration): QueryType[Table, Record, Limit, Order, Status, Chain, PS]

    Definition Classes
    Query
  36. def ttl(duration: FiniteDuration): QueryType[Table, Record, Limit, Order, Status, Chain, PS]

    Definition Classes
    Query
  37. def ttl(seconds: Long): QueryType[Table, Record, Limit, Order, Status, Chain, PS]

    Definition Classes
    Query
  38. def twitterQueryStringExecuteToFuture(str: Statement)(implicit session: Session, keyspace: KeySpace): Future[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  39. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def where(condition: (Table) ⇒ clauses.WhereClause.Condition)(implicit ev: =:=[Chain, Unchainned]): DeleteQuery[Table, Record, Limit, Order, Status, Chainned, PS]

    The where method of a select query.

    The where method of a select query.

    condition

    A where clause condition restricted by path dependant types.

    ev

    An evidence request guaranteeing the user cannot chain multiple where clauses on the same query.

    returns

    Definition Classes
    DeleteQueryQuery
    Annotations
    @implicitNotFound( ... )

Inherited from Batchable

Inherited from Query[Table, Record, Limit, Order, Status, Chain, PS]

Inherited from ExecutableStatement

Inherited from CassandraOperations

Inherited from AnyRef

Inherited from Any

Ungrouped