Class

tech.scoundrel.rogue.cc

ExecutableQuery

Related Doc: package cc

Permalink

case class ExecutableQuery[MB, M <: MB, R, State](query: Query[M, R, State], ex: BsonExecutors[MB])(implicit ev: ShardingOk[M, State]) extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExecutableQuery
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExecutableQuery(query: Query[M, R, State], ex: BsonExecutors[MB])(implicit ev: ShardingOk[M, State])

    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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def bulkDeleteAsync_!!(concern: WriteConcern)(implicit ev1: Required[State, Unselected with Unlimited with Unskipped], dba: MongoDatabase): Future[Unit]

    Permalink
  6. def bulkDeleteAsync_!!!()(implicit ev1: Required[State, Unselected with Unlimited with Unskipped], dba: MongoDatabase): Future[Unit]

    Permalink
  7. def bulkDelete_!!(concern: WriteConcern)(implicit ev1: Required[State, Unselected with Unlimited with Unskipped], db: MongoDatabase): Unit

    Permalink

    Delete all of the records that match the query.

    Delete all of the records that match the query. The query must not contain any "skip", "limit", or "select" clauses. Sends the delete operation to mongo, and waits for the delete operation to complete before returning to the caller.

  8. def bulkDelete_!!!()(implicit ev1: Required[State, Unselected with Unlimited with Unskipped], db: MongoDatabase): Unit

    Permalink

    Delete all of the records that match the query.

    Delete all of the records that match the query. The query must not contain any "skip", "limit", or "select" clauses. Sends the delete operation to mongo, and returns - does not wait for the delete to be finished.

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def count()(implicit db: MongoDatabase): Long

    Permalink

    Gets the size of the query result.

    Gets the size of the query result. This should only be called on queries that do not have limits or skips.

  11. def countAsync()(implicit dba: MongoDatabase): Future[Long]

    Permalink
  12. def countDistinct[V](field: (M) ⇒ Field[V, _], readPreference: Option[ReadPreference] = None)(implicit ct: ClassTag[V], db: MongoDatabase): Long

    Permalink

    Returns the number of distinct values returned by a query.

    Returns the number of distinct values returned by a query. The query must not have limit or skip clauses.

  13. def countDistinctAsync[V](field: (M) ⇒ Field[V, _])(implicit ct: ClassTag[V], db: MongoDatabase): Future[Long]

    Permalink
  14. def distinct[V](field: (M) ⇒ Field[V, _], readPreference: Option[ReadPreference] = None)(implicit ct: ClassTag[V], db: MongoDatabase): Seq[V]

    Permalink

    Returns a list of distinct values returned by a query.

    Returns a list of distinct values returned by a query. The query must not have limit or skip clauses.

  15. def distinctAsync[V](field: (M) ⇒ Field[V, _])(implicit ct: ClassTag[V], db: MongoDatabase): Future[Seq[V]]

    Permalink

    Returns a list of distinct values returned by a query.

    Returns a list of distinct values returned by a query. The query must not have limit or skip clauses.

  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. val ex: BsonExecutors[MB]

    Permalink
  18. def exists()(implicit ev: <:<[State, Unlimited with Unskipped], db: MongoDatabase): Boolean

    Permalink

    Checks if there are any records that match this query.

  19. def existsAsync(implicit ev: <:<[State, Unlimited with Unskipped], dba: MongoDatabase): Future[Boolean]

    Permalink
  20. def fetch[S2](limit: Int)(implicit ev1: AddLimit[State, S2], ev2: ShardingOk[M, S2], db: MongoDatabase): List[R]

    Permalink

    Execute a query, returning no more than a specified number of result records.

    Execute a query, returning no more than a specified number of result records. The query must not have a limit clause.

    limit

    the maximum number of records to return.

  21. def fetch()(implicit db: MongoDatabase): List[R]

    Permalink

    Execute the query, returning all of the records that match the query.

    Execute the query, returning all of the records that match the query.

    returns

    a list containing the records that match the query

  22. def fetchAsync[S2](limit: Int)(implicit ev1: AddLimit[State, S2], ev2: ShardingOk[M, S2], dba: MongoDatabase): Future[Seq[R]]

    Permalink
  23. def fetchAsync()(implicit dba: MongoDatabase): Future[Seq[R]]

    Permalink
  24. def fetchBatch[T](batchSize: Int)(f: (Seq[R]) ⇒ Seq[T])(implicit db: MongoDatabase): Seq[T]

    Permalink

    fetch a batch of results, and execute a function on each element of the list.

    fetch a batch of results, and execute a function on each element of the list.

    f

    the function to invoke on the records that match the query.

    returns

    a list containing the results of invoking the function on each record.

  25. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def findAndDeleteOne()(implicit ev: RequireShardKey[M, State], db: MongoDatabase): Option[R]

    Permalink

    Finds the first record that matches the query (if any), fetches it, and then deletes it.

    Finds the first record that matches the query (if any), fetches it, and then deletes it. A copy of the deleted record is returned to the caller.

  27. def findAndDeleteOneAsync()(implicit ev: RequireShardKey[M, State], dba: MongoDatabase): Future[Option[R]]

    Permalink
  28. def foreach(f: (R) ⇒ Unit)(implicit db: MongoDatabase): Unit

    Permalink

    Executes a function on each record value returned by a query.

    Executes a function on each record value returned by a query.

    f

    a function to be invoked on each fetched record.

    returns

    nothing.

  29. def foreachAsync(f: (R) ⇒ Unit)(implicit dba: MongoDatabase): Future[Unit]

    Permalink
  30. def get[S2]()(implicit ev1: AddLimit[State, S2], ev2: ShardingOk[M, S2], db: MongoDatabase): Option[R]

    Permalink

    Fetches the first record that matches the query.

    Fetches the first record that matches the query. The query must not contain a "limited" clause.

    returns

    an option record containing either the first result that matches the query, or None if there are no records that match.

  31. def getAsync[S2]()(implicit ev1: AddLimit[State, S2], ev2: ShardingOk[M, S2], dba: MongoDatabase): Future[Option[R]]

    Permalink
  32. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  34. def iterate[S](state: S)(handler: (S, Event[R]) ⇒ Command[S])(implicit db: MongoDatabase): S

    Permalink
  35. def iterateBatch[S](batchSize: Int, state: S)(handler: (S, Event[Seq[R]]) ⇒ Command[S])(implicit db: MongoDatabase): S

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

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

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

    Permalink
    Definition Classes
    AnyRef
  39. val query: Query[M, R, State]

    Permalink
  40. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped