com.foursquare.rogue.lift

ExecutableQuery

case class ExecutableQuery[MB, M <: MB, RB, R, State](query: Query[M, R, State], db: QueryExecutor[MB, RB])(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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExecutableQuery(query: Query[M, R, State], db: QueryExecutor[MB, RB])(implicit ev: ShardingOk[M, State])

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 bulkDelete_!!(concern: WriteConcern)(implicit ev1: Required[State, Unselected with Unlimited with Unskipped]): Unit

    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]): Unit

    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

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

    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 countDistinct[V](field: (M) ⇒ Field[V, _]): Long

    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.

  12. val db: QueryExecutor[MB, RB]

  13. def distinct[V](field: (M) ⇒ Field[V, _]): Seq[V]

    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.

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

    Definition Classes
    AnyRef
  15. def exists()(implicit ev: <:<[State, Unlimited with Unskipped]): Boolean

    Checks if there are any records that match this query.

  16. def explain(): String

    Return a string containing details about how the query would be executed in mongo.

    Return a string containing details about how the query would be executed in mongo. In particular, this is useful for finding out what indexes will be used by the query.

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

    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.

  18. def fetch(): List[R]

    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

  19. def fetchBatch[T](batchSize: Int)(f: (List[R]) ⇒ List[T]): List[T]

    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.

  20. def finalize(): Unit

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

    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.

  22. def foreach(f: (R) ⇒ Unit): Unit

    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.

  23. def get[S2]()(implicit ev1: AddLimit[State, S2], ev2: ShardingOk[M, S2]): Option[R]

    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.

  24. final def getClass(): Class[_]

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

    Definition Classes
    Any
  26. def iterate[S](state: S)(handler: (S, Event[R]) ⇒ Command[S]): S

  27. def iterateBatch[S](batchSize: Int, state: S)(handler: (S, Event[Seq[R]]) ⇒ Command[S]): S

  28. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  31. def paginate(countPerPage: Int)(implicit ev1: Required[State, Unlimited with Unskipped], ev2: ShardingOk[M, State]): PaginatedQuery[MB, M, RB, R, Unlimited with Unskipped]

    Fetches the records that match the query in paginated form.

    Fetches the records that match the query in paginated form. The query must not contain a "limit" clause.

    countPerPage

    the number of records to be contained in each page of the result.

  32. val query: Query[M, R, State]

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

    Definition Classes
    AnyRef
  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped