com.websudos.phantom.builder.query.prepared

ExecutablePreparedSelectQuery

class ExecutablePreparedSelectQuery[Table <: CassandraTable[Table, _], R, Limit <: LimitBound] extends ExecutableQuery[Table, R, Limit]

Linear Supertypes
ExecutableQuery[Table, R, Limit], RootExecutableQuery[R], ExecutableStatement, CassandraOperations, SessionAugmenterImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ExecutablePreparedSelectQuery
  2. ExecutableQuery
  3. RootExecutableQuery
  4. ExecutableStatement
  5. CassandraOperations
  6. SessionAugmenterImplicits
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExecutablePreparedSelectQuery(st: Statement, fn: (Row) ⇒ R, 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 asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

    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
  12. def fetch(state: PagingState)(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[List[R]]

    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
  13. def fetch()(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[List[R]]

    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
  14. def fetchRecord(modifyStatement: (Statement) ⇒ Statement)(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[ListResult[R]]

    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 fetchRecord(state: Option[PagingState])(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[ListResult[R]]

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

    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()(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[ListResult[R]]

    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 finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def fromRow(r: Row): R

    Definition Classes
    ExecutablePreparedSelectQueryExecutableQuery → RootExecutableQuery
  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
    ExecutablePreparedSelectQueryExecutableStatement
  21. 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
  22. final def getClass(): Class[_]

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

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

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

    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
  26. def iteratorRecord()(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[IteratorResult[R]]

    Definition Classes
    ExecutableQuery
  27. final def ne(arg0: AnyRef): Boolean

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

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

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

    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
    ExecutablePreparedSelectQueryExecutableQuery
  31. val options: QueryOptions

  32. def qb: CQLQuery

  33. def queryString: String

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

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

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

    Attributes
    protected[this]
    Definition Classes
    RootExecutableQuery
  37. val st: Statement

  38. def statement()(implicit session: Session): Statement

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

    Definition Classes
    AnyRef
  40. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ExecutableQuery[Table, R, Limit]

Inherited from RootExecutableQuery[R]

Inherited from ExecutableStatement

Inherited from CassandraOperations

Inherited from SessionAugmenterImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped