Class

com.outworkers.phantom.builder.query.prepared

ExecutablePreparedSelectQuery

Related Doc: package prepared

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExecutablePreparedSelectQuery(st: Statement, fn: (Row) ⇒ R, options: QueryOptions)

    Permalink

Type Members

  1. type Modifier = (Statement) ⇒ Statement

    Permalink
    Definition Classes
    ExecutableStatement
  2. 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. 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: Iterator[Row]): List[R]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    RootExecutableQuery
  7. def directMapper(results: List[Row])(implicit cbf: CanBuildFrom[Nothing, R, List[R]]): List[R]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def fetch(modifyStatement: Modifier)(implicit session: Session, 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.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  11. def fetch()(implicit session: Session, 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.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  12. def fetchRecord(modifyStatement: Modifier)(implicit session: Session, 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.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  13. def fetchRecord()(implicit session: Session, ec: ExecutionContextExecutor): Future[ListResult[R]]

    Permalink

    Returns a parsed sequence of [R]ows This is not suitable for big results set as it will attempt to fetch the entire result set as a List, circumventing pagination settings.

    Returns a parsed sequence of [R]ows This is not suitable for big results set as it will attempt to fetch the entire result set as a List, circumventing pagination settings.

    Use paginateRecord() or other means if you like to deal with bigger result sets.

    session

    The implicit session provided by a com.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  14. def finalize(): Unit

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

    Permalink
    Definition Classes
    ExecutablePreparedSelectQueryExecutableQuery → RootExecutableQuery
  16. def future()(implicit session: Session, 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.outworkers.phantom.Manager.scalaExecutor and it is recommended to use com.outworkers.phantom.dsl.context for operations that chain database calls.

    session

    The implicit session provided by a com.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    An asynchronous Scala future wrapping the Datastax result set.

    Definition Classes
    ExecutablePreparedSelectQueryExecutableStatement
  17. def future(modifyStatement: Modifier)(implicit session: Session, 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.outworkers.phantom.Manager.scalaExecutor and it is recommended to use com.outworkers.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.outworkers.phantom.connectors.Connector.

    executor

    The implicit Scala executor.

    returns

    An asynchronous Scala future wrapping the Datastax result set.

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def greedyEval(f: Future[ResultSet])(implicit ex: ExecutionContextExecutor): Future[ListResult[R]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ExecutableQuery
  20. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  22. def iterator(state: Option[PagingState])(implicit session: Session, ec: ExecutionContextExecutor): Future[IteratorResult[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.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  23. def iterator(state: PagingState)(implicit session: Session, ec: ExecutionContextExecutor): Future[IteratorResult[R]]

    Permalink

    Returns a parsed sequence of [R]ows.

    Returns a parsed sequence of [R]ows. This will only fetch the amount of records defined in the fetchSize setting. It will allow pagination of the inner result set as a scala.collection.immutable.List.

    It will greedy evaluate the records inside a single fetch size batch as it returns a list as opposed to an iterator. For a non greedy variant of the size method use iterator().

    session

    The implicit session provided by a com.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  24. def iterator(modifier: Modifier)(implicit session: Session, ec: ExecutionContextExecutor): Future[IteratorResult[R]]

    Permalink

    Returns a parsed iterator of [R]ows lazily evaluated.

    Returns a parsed iterator of [R]ows lazily evaluated. This will respect the fetch size setting of a query, meaning you will need to provide a paging state to fetch records beyond the regular fetch size.

    session

    The implicit session provided by a com.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping scala iterator of mapped results.

    Definition Classes
    ExecutableQuery
  25. def iterator()(implicit session: Session, ec: ExecutionContextExecutor): Future[IteratorResult[R]]

    Permalink

    Returns a parsed iterator of [R]ows lazily evaluated.

    Returns a parsed iterator of [R]ows lazily evaluated. This will respect the fetch size setting of a query, meaning you will need to provide a paging state to fetch records beyond the regular fetch size.

    session

    The implicit session provided by a com.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping scala iterator of mapped results.

    Definition Classes
    ExecutableQuery
  26. def lazyEval(f: Future[ResultSet])(implicit ex: ExecutionContextExecutor): Future[IteratorResult[R]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ExecutableQuery
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def one()(implicit session: Session, 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.outworkers.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

    Permalink
  32. def paginateRecord(modifier: Modifier)(implicit session: Session, ec: ExecutionContextExecutor, cbf: CanBuildFrom[Nothing, R, List[R]]): Future[ListResult[R]]

    Permalink

    Returns a parsed sequence of [R]ows.

    Returns a parsed sequence of [R]ows. This will only fetch the amount of records defined in the fetchSize setting. It will allow pagination of the inner result set as a scala.collection.immutable.List.

    It will greedy evaluate the records inside a single fetch size batch as it returns a list as opposed to an iterator. For a non greedy variant of the size method use iterator().

    session

    The implicit session provided by a com.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  33. def paginateRecord(state: Option[PagingState])(implicit session: Session, ec: ExecutionContextExecutor, cbf: CanBuildFrom[Nothing, R, List[R]]): 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.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  34. def paginateRecord(state: PagingState)(implicit session: Session, ec: ExecutionContextExecutor, cbf: CanBuildFrom[Nothing, R, Iterator[R]]): Future[ListResult[R]]

    Permalink

    Returns a parsed sequence of [R]ows.

    Returns a parsed sequence of [R]ows. This will only fetch the amount of records defined in the fetchSize setting. It will allow pagination of the inner result set as a scala.collection.immutable.List.

    It will greedy evaluate the records inside a single fetch size batch as it returns a list as opposed to an iterator. For a non greedy variant of the size method use iterator().

    session

    The implicit session provided by a com.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  35. def paginateRecord()(implicit session: Session, ec: ExecutionContextExecutor, cbf: CanBuildFrom[Nothing, R, List[R]]): Future[ListResult[R]]

    Permalink

    Returns a parsed sequence of [R]ows but paginates the results using paging state.

    Returns a parsed sequence of [R]ows but paginates the results using paging state. This will not consume or return the entire set of available results, it will instead return an amount of records equal to the fetch size setting.

    session

    The implicit session provided by a com.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  36. def preparedStatementToPromise(st: String)(implicit session: Session, executor: ExecutionContextExecutor): Promise[PreparedStatement]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  37. def qb: CQLQuery

    Permalink
  38. def queryString: String

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

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

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

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

    Permalink
  43. def statement()(implicit session: Session): Statement

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

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

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

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

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

    Permalink
    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