Class

com.outworkers.phantom.ops

SelectQueryOps

Related Doc: package ops

Permalink

class SelectQueryOps[P[_], F[_], Table <: CassandraTable[Table, _], Record, Limit <: LimitBound, Order <: OrderBound, Status <: ConsistencyBound, Chain <: WhereBound, PS <: HList, TK <: HList] extends ResultQueryInterface[F, Table, Record, Limit]

Linear Supertypes
ResultQueryInterface[F, Table, Record, Limit], QueryInterface[F], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SelectQueryOps
  2. ResultQueryInterface
  3. QueryInterface
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SelectQueryOps(query: SelectQuery[Table, Record, Limit, Order, Status, Chain, PS])(implicit adapter: GuavaAdapter[F], fMonad: FutureMonad[F])

    Permalink

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 aggregate[T]()(implicit session: Session, ev: =:=[Limit, Unlimited], ec: ExecutionContextExecutor, unwrap: <:<[Record, (T)]): F[Option[T]]

    Permalink

    Returns the result of an aggregate function call, provided a single aggregate function was invoked.

    Returns the result of an aggregate function call, provided a single aggregate function was invoked. This is used to circumvent some compiler limitations around HLists being tupled. Phantom relies on HLists to compute a multiple aggregate return function extractor, and if a single aggregate is selected, a Tuple1(value) is returned. This function will extract the content of the Tuple1 to have a more presentable type.

    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.

  5. final def asInstanceOf[T0]: T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def executableQuery: ExecutableCqlQuery

    Permalink
    Definition Classes
    SelectQueryOpsQueryInterface
  11. def fetch(modifyStatement: (Statement) ⇒ Statement)(implicit session: Session, ec: ExecutionContextExecutor): F[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.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ResultQueryInterface
  12. def fetch()(implicit session: Session, ec: ExecutionContextExecutor): F[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.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ResultQueryInterface
  13. def fetchRecord(modifyStatement: (Statement) ⇒ Statement)(implicit session: Session, ec: ExecutionContextExecutor): F[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.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ResultQueryInterface
  14. def fetchRecord()(implicit session: Session, ec: ExecutionContextExecutor): F[ListResult[Record]]

    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
    ResultQueryInterface
  15. def finalize(): Unit

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

    Permalink
    Definition Classes
    SelectQueryOpsResultQueryInterface
  17. def future(modifyStatement: (Statement) ⇒ Statement)(implicit session: Session, executor: ExecutionContextExecutor): F[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 based on the execution engine used.

    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
    QueryInterface
  18. def future()(implicit session: Session, ec: ExecutionContextExecutor): F[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 based on the execution engine used.

    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
    QueryInterface
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def greedyEval(f: F[ResultSet])(implicit ctx: ExecutionContextExecutor): F[ListResult[Record]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ResultQueryInterface
  21. def hashCode(): Int

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

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

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ResultQueryInterface
  24. def iterator(state: PagingState)(implicit session: Session, ec: ExecutionContextExecutor): F[IteratorResult[Record]]

    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
    ResultQueryInterface
  25. def iterator(modifier: (Statement) ⇒ Statement)(implicit session: Session, ec: ExecutionContextExecutor): F[IteratorResult[Record]]

    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
    ResultQueryInterface
  26. def iterator()(implicit session: Session, ec: ExecutionContextExecutor): F[IteratorResult[Record]]

    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
    ResultQueryInterface
  27. def lazyEval(f: F[ResultSet])(implicit ctx: ExecutionContextExecutor): F[IteratorResult[Record]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ResultQueryInterface
  28. def multiAggregate()(implicit session: Session, ev: =:=[Limit, Unlimited], ec: ExecutionContextExecutor): F[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.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.

    Annotations
    @implicitNotFound( ... )
  29. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  32. def one()(implicit session: Session, ev: =:=[Limit, Unlimited], ec: ExecutionContextExecutor): F[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.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
    SelectQueryOpsResultQueryInterface
    Annotations
    @implicitNotFound( ... )
  33. def paginateRecord(modifier: (Statement) ⇒ Statement)(implicit session: Session, ec: ExecutionContextExecutor, cbf: CanBuildFrom[Nothing, Record, List[Record]]): F[ListResult[Record]]

    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
    ResultQueryInterface
  34. def paginateRecord(state: Option[PagingState])(implicit session: Session, ec: ExecutionContextExecutor, cbf: CanBuildFrom[Nothing, Record, List[Record]]): F[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.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ResultQueryInterface
  35. def paginateRecord(state: PagingState)(implicit session: Session, ec: ExecutionContextExecutor, cbf: CanBuildFrom[Nothing, Record, Iterator[Record]]): F[ListResult[Record]]

    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
    ResultQueryInterface
  36. def paginateRecord()(implicit session: Session, ec: ExecutionContextExecutor, cbf: CanBuildFrom[Nothing, Record, List[Record]]): F[ListResult[Record]]

    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
    ResultQueryInterface
  37. def prepareAsync[Rev <: HList]()(implicit session: Session, executor: ExecutionContextExecutor, keySpace: KeySpace, ev: =:!=[PS, HNil], rev: Aux[PS, Rev], fMonad: FutureMonad[F], interface: PromiseInterface[P, F]): F[PreparedSelectBlock[Table, Record, Limit, Rev]]

    Permalink
  38. val query: SelectQuery[Table, Record, Limit, Order, Status, Chain, PS]

    Permalink
  39. def singleResult(row: Option[Row]): Option[Record]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    ResultQueryInterface
  40. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from ResultQueryInterface[F, Table, Record, Limit]

Inherited from QueryInterface[F]

Inherited from AnyRef

Inherited from Any

Ungrouped