Class

com.websudos.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: 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, ec: ExecutionContext, keySpace: KeySpace): 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 Cassandra session in use.

    ec

    The Execution Context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  10. def fetch(state: PagingState)(implicit session: Session, ec: ExecutionContext, keySpace: KeySpace): 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 Cassandra session in use.

    ec

    The Execution Context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  11. def fetch()(implicit session: Session, ec: ExecutionContext, keySpace: KeySpace): 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 Cassandra session in use.

    ec

    The Execution Context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  12. def fetchRecord(modifyStatement: Modifier)(implicit session: Session, ec: ExecutionContext, keySpace: KeySpace): 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 Cassandra session in use.

    ec

    The Execution Context.

    returns

    A Scala future wrapping a list of mapped results.

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

    Permalink
    Definition Classes
    ExecutableQuery
  14. def fetchRecord(state: PagingState)(implicit session: Session, ec: ExecutionContext, keySpace: KeySpace): 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 Cassandra session in use.

    ec

    The Execution Context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  15. def fetchRecord()(implicit session: Session, ec: ExecutionContext, keySpace: KeySpace): 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 Cassandra session in use.

    ec

    The Execution Context.

    returns

    A Scala future wrapping a list of mapped results.

    Definition Classes
    ExecutableQuery
  16. def finalize(): Unit

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

    Permalink
    Definition Classes
    ExecutablePreparedSelectQueryExecutableQuery → RootExecutableQuery
  18. def future()(implicit session: Session, keySpace: KeySpace): 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.

    returns

    An asynchronous Scala future wrapping the Datastax result set.

    Definition Classes
    ExecutablePreparedSelectQueryExecutableStatement
  19. def future(modifyStatement: Modifier)(implicit session: Session, keySpace: KeySpace): 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.

    returns

    An asynchronous Scala future wrapping the Datastax result set.

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

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

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

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

    Permalink

    Returns a parsed iterator of [R]ows

    Returns a parsed iterator of [R]ows

    session

    The Cassandra session in use.

    ec

    The Execution Context.

    returns

    A Scala future wrapping scala iterator of mapped results.

    Definition Classes
    ExecutableQuery
  24. def iteratorRecord()(implicit session: Session, ec: ExecutionContext, keySpace: KeySpace): Future[IteratorResult[R]]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  28. def one()(implicit session: Session, ec: ExecutionContext, keySpace: KeySpace, ev: =:=[Limit, Unlimited]): 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 Cassandra session in use.

    returns

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

    Definition Classes
    ExecutablePreparedSelectQueryExecutableQuery
  29. val options: QueryOptions

    Permalink
  30. def qb: CQLQuery

    Permalink
  31. def queryString: String

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. 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