Trait

com.websudos.phantom.builder.query

ExecutableQuery

Related Doc: package query

Permalink

trait ExecutableQuery[T <: CassandraTable[T, _], R, Limit <: LimitBound] extends ExecutableStatement with RootExecutableQuery[R]

An ExecutableQuery implementation, meant to retrieve results from Cassandra. This provides the root implementation of a Select query.

T

The class owning the table.

R

The record type to store.

Linear Supertypes
RootExecutableQuery[R], ExecutableStatement, CassandraOperations, SessionAugmenterImplicits, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExecutableQuery
  2. RootExecutableQuery
  3. ExecutableStatement
  4. CassandraOperations
  5. SessionAugmenterImplicits
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Modifier = (Statement) ⇒ Statement

    Permalink
    Definition Classes
    ExecutableStatement
  2. implicit class RichSession extends SessionAugmenter

    Permalink
    Definition Classes
    SessionAugmenterImplicits

Abstract Value Members

  1. abstract def fromRow(r: Row): R

    Permalink
    Definition Classes
    ExecutableQuery → RootExecutableQuery
  2. abstract def one()(implicit session: Session, keySpace: KeySpace, ev: =:=[Limit, Unlimited], ec: ExecutionContextExecutor): Future[Option[R]]

    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.

  3. abstract def options: QueryOptions

    Permalink
    Definition Classes
    ExecutableStatement
  4. abstract def qb: CQLQuery

    Permalink
    Definition Classes
    ExecutableStatement

Concrete 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 asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def directMapper(results: List[Row]): List[R]

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

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

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

    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.

  10. def fetch(state: PagingState)(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[List[R]]

    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.

  11. def fetch()(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[List[R]]

    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.

  12. def fetchRecord(modifyStatement: Modifier)(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[ListResult[R]]

    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.

  13. def fetchRecord(state: Option[PagingState])(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[ListResult[R]]

    Permalink
  14. def fetchRecord(state: PagingState)(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[ListResult[R]]

    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.

  15. def fetchRecord()(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[ListResult[R]]

    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.

  16. def finalize(): Unit

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

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

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

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

    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.

  23. def iteratorRecord()(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[IteratorResult[R]]

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

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

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

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

    Permalink
    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  28. def queryString: String

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  34. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from RootExecutableQuery[R]

Inherited from ExecutableStatement

Inherited from CassandraOperations

Inherited from SessionAugmenterImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped