scalaz.stream.mongodb.query

Query

case class Query(bq: BasicQuery, where: Option[String] = scala.None, sort: Option[QuerySort] = scala.None, hint: Option[QueryHint] = scala.None, limit: Option[Int] = scala.None, skip: Option[Int] = scala.None, projection: Option[QueryProjection] = scala.None, explainFlag: Option[QueryEnums.ExplainVerbosity.Value] = scala.None, snapshotFlag: Option[Boolean] = scala.None, comment: Option[String] = scala.None, readPreference: Option[ReadPreference] = scala.None) extends MongoCollectionCommand[DBObject] with QueryOps with Product with Serializable

mongodb Query definition

bq

Basic query selector

where

Javascript $where selector

sort

Sort of the query

hint

Hints of the query

limit

Limit constrain on number of documents returned

skip

How much documents to ignore form the beginning of the query

projection

Which fields of the document to include

explainFlag

Explain result

snapshotFlag

Whether to create snapshot

comment

Eventual comment to use in the log

readPreference

ReadPreference of the query

Linear Supertypes
Serializable, Serializable, Product, Equals, QueryOps, Ops[Query], MongoCollectionCommand[DBObject], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Query
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. QueryOps
  7. Ops
  8. MongoCollectionCommand
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Query(bq: BasicQuery, where: Option[String] = scala.None, sort: Option[QuerySort] = scala.None, hint: Option[QueryHint] = scala.None, limit: Option[Int] = scala.None, skip: Option[Int] = scala.None, projection: Option[QueryProjection] = scala.None, explainFlag: Option[QueryEnums.ExplainVerbosity.Value] = scala.None, snapshotFlag: Option[Boolean] = scala.None, comment: Option[String] = scala.None, readPreference: Option[ReadPreference] = scala.None)

    bq

    Basic query selector

    where

    Javascript $where selector

    sort

    Sort of the query

    hint

    Hints of the query

    limit

    Limit constrain on number of documents returned

    skip

    How much documents to ignore form the beginning of the query

    projection

    Which fields of the document to include

    explainFlag

    Explain result

    snapshotFlag

    Whether to create snapshot

    comment

    Eventual comment to use in the log

    readPreference

    ReadPreference of the query

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. def ++(q: Query): ChannelResult[DBCollection, DBObject]

    alias for append *

    alias for append *

    Definition Classes
    QueryOps
  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. def and[A](a: QueryAction[A]): ChannelResult[DBCollection, A]

    Applies action on query result *

    Applies action on query result *

    Definition Classes
    QueryOps
  8. def append(q: Query): ChannelResult[DBCollection, DBObject]

    Appends results of two queries together *

    Appends results of two queries together *

    Definition Classes
    QueryOps
  9. lazy val asDBObject: DBObject

    Compiles query to mongodb DBOBject representation

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. val bq: BasicQuery

    Basic query selector

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def comment(s: String): Query

    Definition Classes
    QueryOps
  14. val comment: Option[String]

    Eventual comment to use in the log

  15. def count: ChannelResult[DBCollection, Long]

    Counts the documents that matched the query *

    Counts the documents that matched the query *

    Definition Classes
    QueryOps
  16. def distinct[A](key: String)(implicit arg0: BSONSerializable[A]): ChannelResult[DBCollection, A]

    Returns all distinct values of key in query *

    Returns all distinct values of key in query *

    Definition Classes
    QueryOps
  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def explain(flag: QueryEnums.ExplainVerbosity.Value): Query

    Definition Classes
    QueryOps
  19. val explainFlag: Option[QueryEnums.ExplainVerbosity.Value]

    Explain result

  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def from(pref: ReadPreference.Value): Query

    Definition Classes
    QueryOps
  22. def from(pref: ReadPreference): Query

    Definition Classes
    QueryOps
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. def hint(index: CollectionIndex): Query

    Definition Classes
    QueryOps
  25. def hint(n: String): Query

    Definition Classes
    QueryOps
  26. val hint: Option[QueryHint]

    Hints of the query

  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def limit(max: Int): Query

    Definition Classes
    QueryOps
  29. val limit: Option[Int]

    Limit constrain on number of documents returned

  30. def mapReduce(mapReduce: MapReduceDefinition): ChannelResult[DBCollection, DBObject]

    Applies mapreduce function to query.

    Applies mapreduce function to query. Honors sorts from query, if specified

    Definition Classes
    QueryOps
  31. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  34. def orderby(h: OrderPair, t: OrderPair*): Query

    Definition Classes
    QueryOps
  35. def pipeThrough(p: PipelineOperator): ChannelResult[DBCollection, DBObject]

    Pipes result of this query though aggregation command *

    Pipes result of this query though aggregation command *

    Definition Classes
    QueryOps
  36. def project(h: ProjectionPair, t: ProjectionPair*): Query

    Definition Classes
    QueryOps
  37. val projection: Option[QueryProjection]

    Which fields of the document to include

  38. val readPreference: Option[ReadPreference]

    ReadPreference of the query

  39. val self: Query

    Definition Classes
    Query → Ops
  40. def skip(by: Int): Query

    Definition Classes
    QueryOps
  41. val skip: Option[Int]

    How much documents to ignore form the beginning of the query

  42. def snapshot(b: Boolean): Query

    Definition Classes
    QueryOps
  43. val snapshotFlag: Option[Boolean]

    Whether to create snapshot

  44. def sort(h: OrderPair, t: OrderPair*): Query

    Definition Classes
    QueryOps
  45. val sort: Option[QuerySort]

    Sort of the query

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

    Definition Classes
    AnyRef
  47. def toChannelResult: ChannelResult[DBCollection, DBObject]

    Definition Classes
    QueryMongoCollectionCommand
  48. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def where(js: String): Query

    Definition Classes
    QueryOps
  52. val where: Option[String]

    Javascript $where selector

  53. def |>>(p: PipelineOperator): ChannelResult[DBCollection, DBObject]

    Pipes result of this query through aggregation pipeline *

    Pipes result of this query through aggregation pipeline *

    Definition Classes
    QueryOps

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from QueryOps

Inherited from Ops[Query]

Inherited from MongoCollectionCommand[DBObject]

Inherited from AnyRef

Inherited from Any

Ungrouped