Class/Object

com.websudos.phantom.builder.query

SelectQuery

Related Docs: object SelectQuery | package query

Permalink

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

Linear Supertypes
ExecutableQuery[Table, Record, Limit], RootExecutableQuery[Record], Query[Table, Record, Limit, Order, Status, Chain, PS], ExecutableStatement, CassandraOperations, SessionAugmenterImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SelectQuery
  2. ExecutableQuery
  3. RootExecutableQuery
  4. Query
  5. ExecutableStatement
  6. CassandraOperations
  7. SessionAugmenterImplicits
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SelectQuery(table: Table, rowFunc: (Row) ⇒ Record, init: CQLQuery, wherePart: WherePart = WherePart.empty, orderPart: OrderPart = OrderPart.empty, limitedPart: LimitedPart = LimitedPart.empty, filteringPart: FilteringPart = FilteringPart.empty, usingPart: UsingPart = UsingPart.empty, count: Boolean = false, options: QueryOptions = QueryOptions.empty)

    Permalink

Type Members

  1. type Modifier = (Statement) ⇒ Statement

    Permalink
    Definition Classes
    ExecutableStatement
  2. type QueryType[T <: CassandraTable[T, _], R, L <: LimitBound, O <: OrderBound, S <: ConsistencyBound, C <: WhereBound, P <: HList] = SelectQuery[T, R, L, O, S, C, P]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SelectQueryQuery
  3. 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. def allowFiltering(): SelectQuery[Table, Record, Limit, Order, Status, Chain, PS]

    Permalink
  5. def and[RR, HL <: HList, Out <: HList](condition: (Table) ⇒ QueryCondition[HL])(implicit ev: =:=[Chain, Chainned], prepend: shapeless.ops.hlist.Prepend.Aux[HL, PS, Out]): QueryType[Table, Record, Limit, Order, Status, Chainned, Out]

    Permalink

    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.

    Definition Classes
    SelectQueryQuery
  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def consistencyLevel_=(level: ConsistencyLevel)(implicit ev: =:=[Status, Unspecified], session: Session): SelectQuery[Table, Record, Limit, Order, Specified, Chain, PS]

    Permalink
    Definition Classes
    SelectQueryQuery
  9. val count: Boolean

    Permalink
    Attributes
    protected[com.websudos.phantom]
  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, opts: QueryOptions): QueryType[T, R, L, O, S, C, P]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SelectQueryQuery
  11. def directMapper(results: List[Row]): List[Record]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    RootExecutableQuery
  12. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def fetch(modifyStatement: Modifier)(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[List[Record]]

    Permalink

    Returns a parsed sequence of [R]ows This is not suitable for big results set

    Returns a parsed sequence of [R]ows This is not suitable for big results set

    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

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  15. def fetch(state: PagingState)(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[List[Record]]

    Permalink

    Returns a parsed sequence of [R]ows This is not suitable for big results set

    Returns a parsed sequence of [R]ows This is not suitable for big results set

    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

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  16. def fetch()(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[List[Record]]

    Permalink

    Returns a parsed sequence of [R]ows This is not suitable for big results set

    Returns a parsed sequence of [R]ows This is not suitable for big results set

    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

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  17. def fetchRecord(modifyStatement: Modifier)(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[ListResult[Record]]

    Permalink

    Returns a parsed sequence of [R]ows This is not suitable for big results set

    Returns a parsed sequence of [R]ows This is not suitable for big results set

    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

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  18. def fetchRecord(state: Option[PagingState])(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[ListResult[Record]]

    Permalink
    Definition Classes
    ExecutableQuery
  19. def fetchRecord(state: PagingState)(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[ListResult[Record]]

    Permalink

    Returns a parsed sequence of [R]ows This is not suitable for big results set

    Returns a parsed sequence of [R]ows This is not suitable for big results set

    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

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  20. def fetchRecord()(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[ListResult[Record]]

    Permalink

    Returns a parsed sequence of [R]ows This is not suitable for big results set

    Returns a parsed sequence of [R]ows This is not suitable for big results set

    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

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  21. val filteringPart: FilteringPart

    Permalink
    Attributes
    protected[com.websudos.phantom]
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def fromRow(row: Row): Record

    Permalink
    Definition Classes
    SelectQueryExecutableQuery → RootExecutableQuery
  24. def future(modifyStatement: Modifier)(implicit session: Session, keySpace: KeySpace, 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.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
  25. def future()(implicit session: Session, keySpace: KeySpace, 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.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
  26. final def getClass(): Class[_]

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

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

    Permalink
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. def iterator()(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[Iterator[Record]]

    Permalink

    Returns a parsed iterator of [R]ows

    Returns a parsed iterator of [R]ows

    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

    A Scala future wrapping scala iterator of mapped results.

    Definition Classes
    ExecutableQuery
  31. def iteratorRecord()(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[IteratorResult[Record]]

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

    Permalink
    Definition Classes
    SelectQueryQuery
    Annotations
    @implicitNotFound( ... )
  33. val limitedPart: LimitedPart

    Permalink
    Attributes
    protected[com.websudos.phantom]
  34. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  37. def one()(implicit session: Session, keySpace: KeySpace, ev: =:=[Limit, Unlimited], ec: ExecutionContextExecutor): Future[Option[Record]]

    Permalink

    Returns the first row from the select ignoring everything else

    Returns the first row from the select ignoring everything else

    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.

    ev

    The implicit limit for the query.

    ec

    The implicit Scala execution context.

    returns

    A Scala future guaranteed to contain a single result wrapped as an Option.

    Definition Classes
    SelectQueryExecutableQuery
    Annotations
    @implicitNotFound( ... )
  38. val options: QueryOptions

    Permalink
    Definition Classes
    SelectQueryQueryExecutableStatement
  39. final def orderBy(clauses: (Table) ⇒ Condition*)(implicit ev: =:=[Order, Unordered]): SelectQuery[Table, Record, Limit, Ordered, Status, Chain, PS]

    Permalink
    Annotations
    @implicitNotFound( ... )
  40. val orderPart: OrderPart

    Permalink
    Attributes
    protected[com.websudos.phantom]
  41. def prepare[Rev <: HList]()(implicit session: Session, keySpace: KeySpace, ev: =:!=[PS, HNil], rev: Aux[PS, Rev]): PreparedSelectBlock[Table, Record, Limit, Rev]

    Permalink
  42. def preparedStatementToPromise(st: String)(implicit session: Session, keyspace: KeySpace, executor: ExecutionContextExecutor): Promise[PreparedStatement]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  43. val qb: CQLQuery

    Permalink
    Definition Classes
    SelectQueryQueryExecutableStatement
  44. def queryString: String

    Permalink
    Definition Classes
    ExecutableStatement
  45. val rowFunc: (Row) ⇒ Record

    Permalink
    Attributes
    protected[com.websudos.phantom]
  46. def scalaQueryStringExecuteToFuture(st: Statement)(implicit session: Session, keyspace: KeySpace, executor: ExecutionContextExecutor): Future[ResultSet]

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

    Permalink
    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  48. def singleResult(row: Row): Option[Record]

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

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

    Permalink
    Definition Classes
    AnyRef
  51. val table: Table

    Permalink
    Attributes
    protected[com.websudos.phantom]
  52. def toString(): String

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

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

    Permalink
    Definition Classes
    Query
  55. def using(clause: Condition): SelectQuery[Table, Record, Limit, Order, Status, Chainned, PS]

    Permalink
  56. val usingPart: UsingPart

    Permalink
    Attributes
    protected[com.websudos.phantom]
  57. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. def where[RR, HL <: HList, Out <: HList](condition: (Table) ⇒ QueryCondition[HL])(implicit ev: =:=[Chain, Unchainned], prepend: shapeless.ops.hlist.Prepend.Aux[HL, PS, Out]): QueryType[Table, Record, Limit, Order, Status, Chainned, Out]

    Permalink

    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.

    Definition Classes
    SelectQueryQuery
  61. val wherePart: WherePart

    Permalink
    Attributes
    protected[com.websudos.phantom]

Inherited from ExecutableQuery[Table, Record, Limit]

Inherited from RootExecutableQuery[Record]

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

Inherited from ExecutableStatement

Inherited from CassandraOperations

Inherited from SessionAugmenterImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped