Class

reactivemongo.api.collections.bson

BSONQueryBuilder

Related Doc: package bson

Permalink

case class BSONQueryBuilder(collection: Collection, failoverStrategy: FailoverStrategy, queryOption: Option[BSONDocument] = None, sortOption: Option[BSONDocument] = None, projectionOption: Option[BSONDocument] = None, hintOption: Option[BSONDocument] = None, explainFlag: Boolean = false, snapshotFlag: Boolean = false, commentString: Option[String] = None, options: QueryOpts = QueryOpts(), maxTimeMsOption: Option[Long] = None) extends GenericQueryBuilder[BSONSerializationPack.type] with Product with Serializable

Annotations
@SerialVersionUID() @deprecated
Deprecated

(Since version 0.16.0) Useless, will be remove

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BSONQueryBuilder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. GenericQueryBuilder
  7. QueryOps
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BSONQueryBuilder(collection: Collection, failoverStrategy: FailoverStrategy, queryOption: Option[BSONDocument] = None, sortOption: Option[BSONDocument] = None, projectionOption: Option[BSONDocument] = None, hintOption: Option[BSONDocument] = None, explainFlag: Boolean = false, snapshotFlag: Boolean = false, commentString: Option[String] = None, options: QueryOpts = QueryOpts(), maxTimeMsOption: Option[Long] = None)

    Permalink

Type Members

  1. type Self = BSONQueryBuilder

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilderQueryOps

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to any2stringadd[BSONQueryBuilder] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (BSONQueryBuilder, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to ArrowAssoc[BSONQueryBuilder] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def awaitData: Self

    Permalink

    Toggles AwaitData: Block a little while waiting for more data instead of returning immediately if no data.

    Toggles AwaitData: Block a little while waiting for more data instead of returning immediately if no data. Use along with TailableCursor.

    Definition Classes
    GenericQueryBuilderQueryOps
  8. def batchSize(n: Int): Self

    Permalink

    Sets an upper limit on the number of documents to retrieve per batch.

    Sets an upper limit on the number of documents to retrieve per batch. Defaults to 0 (meaning no upper limit - MongoDB decides).

    Definition Classes
    GenericQueryBuilderQueryOps
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val collection: Collection

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  11. def comment(message: String): Self

    Permalink

    Adds a comment to this query, that may appear in the MongoDB logs.

    Adds a comment to this query, that may appear in the MongoDB logs.

    Definition Classes
    GenericQueryBuilder
  12. val commentString: Option[String]

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  13. def copy(queryOption: Option[BSONDocument] = queryOption, sortOption: Option[BSONDocument] = sortOption, projectionOption: Option[BSONDocument] = projectionOption, hintOption: Option[BSONDocument] = hintOption, explainFlag: Boolean = explainFlag, snapshotFlag: Boolean = snapshotFlag, commentString: Option[String] = commentString, options: QueryOpts = options, failoverStrategy: FailoverStrategy = failoverStrategy, maxTimeMsOption: Option[Long] = maxTimeMsOption): BSONQueryBuilder

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  14. def cursor[T](readPreference: ReadPreference = readPreference, isMongo26WriteOp: Boolean = false)(implicit reader: Reader[T], cp: CursorProducer[T]): ProducedCursor

    Permalink

    Makes a Cursor of this query, which can be enumerated.

    Makes a Cursor of this query, which can be enumerated.

    T

    the results type

    readPreference

    The reactivemongo.api.ReadPreference for this query. If the ReadPreference implies that this query can be run on a secondary, the slaveOk flag will be set.

    reader

    the reader for the results type

    Definition Classes
    GenericQueryBuilder
  15. def ensuring(cond: (BSONQueryBuilder) ⇒ Boolean, msg: ⇒ Any): BSONQueryBuilder

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to Ensuring[BSONQueryBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (BSONQueryBuilder) ⇒ Boolean): BSONQueryBuilder

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to Ensuring[BSONQueryBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: ⇒ Any): BSONQueryBuilder

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to Ensuring[BSONQueryBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): BSONQueryBuilder

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to Ensuring[BSONQueryBuilder] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def exhaust: Self

    Permalink

    Toggles Exhaust

    Toggles Exhaust

    Definition Classes
    GenericQueryBuilderQueryOps
  21. def explain(flag: Boolean = true): Self

    Permalink

    Toggles explain mode.

    Toggles explain mode.

    Definition Classes
    GenericQueryBuilder
  22. val explainFlag: Boolean

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  23. val failoverStrategy: FailoverStrategy

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to StringFormat[BSONQueryBuilder] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  26. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  27. def hint(document: Document): Self

    Permalink

    Sets the hint document (a document that declares the index MongoDB should use for this query).

    Sets the hint document (a document that declares the index MongoDB should use for this query).

    Definition Classes
    GenericQueryBuilder
  28. val hintOption: Option[BSONDocument]

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. def maxTimeMs(p: Long): Self

    Permalink

    Adds maxTimeMs to query https://docs.mongodb.org/v3.0/reference/operator/meta/maxTimeMS/

    Adds maxTimeMs to query https://docs.mongodb.org/v3.0/reference/operator/meta/maxTimeMS/

    Definition Classes
    GenericQueryBuilder
  31. val maxTimeMsOption: Option[Long]

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. def noCursorTimeout: Self

    Permalink

    Toggles NoCursorTimeout: The cursor will not expire automatically

    Toggles NoCursorTimeout: The cursor will not expire automatically

    Definition Classes
    GenericQueryBuilderQueryOps
  34. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  36. def one[T](readPreference: ReadPreference)(implicit reader: Reader[T], ec: ExecutionContext): Future[Option[T]]

    Permalink

    Sends this query and gets a future Option[T] (alias for reactivemongo.api.Cursor.headOption).

    Sends this query and gets a future Option[T] (alias for reactivemongo.api.Cursor.headOption).

    T

    the results type

    readPreference

    The reactivemongo.api.ReadPreference for this query. If the ReadPreference implies that this query can be run on a secondary, the slaveOk flag will be set.

    reader

    the reader for the results type

    Definition Classes
    GenericQueryBuilder
  37. def one[T](implicit reader: Reader[T], ec: ExecutionContext): Future[Option[T]]

    Permalink

    Sends this query and gets a future Option[T] (alias for reactivemongo.api.Cursor.headOption).

    Sends this query and gets a future Option[T] (alias for reactivemongo.api.Cursor.headOption).

    T

    the results type

    reader

    the reader for the results type

    Definition Classes
    GenericQueryBuilder
  38. def oplogReplay: Self

    Permalink

    Toggles OplogReplay

    Toggles OplogReplay

    Definition Classes
    GenericQueryBuilderQueryOps
  39. def options(options: QueryOpts): Self

    Permalink
    Definition Classes
    GenericQueryBuilder
  40. val options: QueryOpts

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  41. val pack: BSONSerializationPack.type

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  42. def partial: Self

    Permalink

    Toggles Partial: The response can be partial - if a shard is down, no error will be thrown.

    Toggles Partial: The response can be partial - if a shard is down, no error will be thrown.

    Definition Classes
    GenericQueryBuilderQueryOps
  43. def projection(p: Document): Self

    Permalink

    Sets the projection document (for retrieving only a subset of fields).

    Sets the projection document (for retrieving only a subset of fields).

    Definition Classes
    GenericQueryBuilder
  44. def projection[Pjn](p: Pjn)(implicit writer: Writer[Pjn]): Self

    Permalink

    Sets the projection document (for retrieving only a subset of fields).

    Sets the projection document (for retrieving only a subset of fields).

    Pjn

    The type of the projection. An implicit Writer[Pjn] typeclass for handling it has to be in the scope.

    Definition Classes
    GenericQueryBuilder
  45. val projectionOption: Option[BSONDocument]

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  46. def query(selector: Document): Self

    Permalink

    Sets the query (the selector document).

    Sets the query (the selector document).

    Definition Classes
    GenericQueryBuilder
  47. def query[Qry](selector: Qry)(implicit writer: Writer[Qry]): Self

    Permalink

    Sets the selector document.

    Sets the selector document.

    Qry

    The type of the query. An implicit Writer[Qry] typeclass for handling it has to be in the scope.

    Definition Classes
    GenericQueryBuilder
  48. val queryOption: Option[BSONDocument]

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  49. def readConcern: ReadConcern

    Permalink

    The read concern (since 3.2)

    The read concern (since 3.2)

    Definition Classes
    GenericQueryBuilder
  50. def requireOne[T](readPreference: ReadPreference)(implicit reader: Reader[T], ec: ExecutionContext): Future[T]

    Permalink

    Sends this query and gets a future T (alias for reactivemongo.api.Cursor.head).

    Sends this query and gets a future T (alias for reactivemongo.api.Cursor.head).

    T

    the results type

    readPreference

    The reactivemongo.api.ReadPreference for this query. If the ReadPreference implies that this query can be run on a secondary, the slaveOk flag will be set.

    reader

    the reader for the results type

    Definition Classes
    GenericQueryBuilder
  51. def requireOne[T](implicit reader: Reader[T], ec: ExecutionContext): Future[T]

    Permalink

    Sends this query and gets a future T (alias for reactivemongo.api.Cursor.head).

    Sends this query and gets a future T (alias for reactivemongo.api.Cursor.head).

    T

    the results type

    reader

    the reader for the results type

    Definition Classes
    GenericQueryBuilder
  52. def skip(n: Int): Self

    Permalink

    Sets the number of documents to skip.

    Sets the number of documents to skip.

    Definition Classes
    GenericQueryBuilderQueryOps
  53. def slaveOk: Self

    Permalink

    Toggles SlaveOk: The query is might be run on a secondary.

    Toggles SlaveOk: The query is might be run on a secondary.

    Definition Classes
    GenericQueryBuilderQueryOps
  54. def snapshot(flag: Boolean = true): Self

    Permalink

    Toggles snapshot mode.

    Toggles snapshot mode.

    Definition Classes
    GenericQueryBuilder
  55. val snapshotFlag: Boolean

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  56. def sort(document: Document): Self

    Permalink

    Sets the sorting document.

    Sets the sorting document.

    Definition Classes
    GenericQueryBuilder
  57. val sortOption: Option[BSONDocument]

    Permalink
    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  58. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  59. def tailable: Self

    Permalink

    Toggles TailableCursor: Makes the cursor not to close after all the data is consumed.

    Toggles TailableCursor: Makes the cursor not to close after all the data is consumed.

    Definition Classes
    GenericQueryBuilderQueryOps
  60. lazy val version: MongoWireVersion

    Permalink
    Attributes
    protected
    Definition Classes
    GenericQueryBuilder
  61. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. def [B](y: B): (BSONQueryBuilder, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to ArrowAssoc[BSONQueryBuilder] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def readPreference: ReadPreference

    Permalink

    The default ReadPreference

    The default ReadPreference

    Definition Classes
    GenericQueryBuilder
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 0.16.0) Internal: will be made private

  2. def updateOptions(update: (QueryOpts) ⇒ QueryOpts): Self

    Permalink
    Definition Classes
    GenericQueryBuilder
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.4) Use options or the separate query ops

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from QueryOps

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from BSONQueryBuilder to any2stringadd[BSONQueryBuilder]

Inherited by implicit conversion StringFormat from BSONQueryBuilder to StringFormat[BSONQueryBuilder]

Inherited by implicit conversion Ensuring from BSONQueryBuilder to Ensuring[BSONQueryBuilder]

Inherited by implicit conversion ArrowAssoc from BSONQueryBuilder to ArrowAssoc[BSONQueryBuilder]

Ungrouped