reactivemongo.api.collections.default

BSONQueryBuilder

case class BSONQueryBuilder(collection: Collection, failover: FailoverStrategy, queryOption: Option[BSONDocument] = scala.None, sortOption: Option[BSONDocument] = scala.None, projectionOption: Option[BSONDocument] = scala.None, hintOption: Option[BSONDocument] = scala.None, explainFlag: Boolean = false, snapshotFlag: Boolean = false, commentString: Option[String] = scala.None, options: QueryOpts = ...) extends GenericQueryBuilder[BSONDocument, BSONDocumentReader, BSONDocumentWriter] with BSONConverters with BSONGenericHandlers with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, BSONGenericHandlers, BSONConverters, GenericQueryBuilder[BSONDocument, BSONDocumentReader, BSONDocumentWriter], GenericHandlers[BSONDocument, BSONDocumentReader, BSONDocumentWriter], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BSONQueryBuilder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. BSONGenericHandlers
  7. BSONConverters
  8. GenericQueryBuilder
  9. GenericHandlers
  10. AnyRef
  11. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Type Members

  1. case class BSONStructureReader[T](reader: BSONDocumentReader[T]) extends GenericReader[BSONDocument, T] with Product with Serializable

    Definition Classes
    BSONGenericHandlers
  2. case class BSONStructureWriter[T](writer: BSONDocumentWriter[T]) extends GenericWriter[T, BSONDocument] with Product with Serializable

    Definition Classes
    BSONGenericHandlers
  3. case class GenericBufferReader[T](reader: Reader[T]) extends BufferReader[T] with Product with Serializable

    Definition Classes
    GenericHandlers
  4. case class GenericBufferWriter[T](writer: Writer[T]) extends BufferWriter[T] with Product with Serializable

    Definition Classes
    GenericHandlers
  5. type Self = BSONQueryBuilder

    Definition Classes
    BSONQueryBuilderGenericQueryBuilder

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 +(other: String): String

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

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

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

    Definition Classes
    Any
  8. def BufferReaderInstance[T](reader: BSONDocumentReader[T]): GenericBufferReader[T]

    Definition Classes
    GenericHandlers
  9. def BufferWriterInstance[T](writer: BSONDocumentWriter[T]): GenericBufferWriter[T]

    Definition Classes
    GenericHandlers
  10. object StructureBufferReader extends BufferReader[BSONDocument]

    Definition Classes
    BSONGenericHandlersGenericHandlers
  11. object StructureBufferWriter extends BufferWriter[BSONDocument]

    Definition Classes
    BSONGenericHandlersGenericHandlers
  12. def StructureReader[T](reader: BSONDocumentReader[T]): BSONStructureReader[T]

    Definition Classes
    BSONGenericHandlersGenericHandlers
  13. def StructureWriter[T](writer: BSONDocumentWriter[T]): GenericWriter[T, BSONDocument]

    Definition Classes
    BSONGenericHandlersGenericHandlers
  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def clone(): AnyRef

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

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

    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
  18. val commentString: Option[String]

    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  19. def convert[T](reader: BSONDocumentReader[T]): BufferReader[T]

    Definition Classes
    BSONConverters
  20. def copy(queryOption: Option[BSONDocument], sortOption: Option[BSONDocument], projectionOption: Option[BSONDocument], hintOption: Option[BSONDocument], explainFlag: Boolean, snapshotFlag: Boolean, commentString: Option[String], options: QueryOpts, failover: FailoverStrategy): BSONQueryBuilder

    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  21. def cursor[T](readPreference: ReadPreference)(implicit reader: BSONDocumentReader[T] = structureReader, ec: ExecutionContext): Cursor[T]

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

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

    An implicit Reader[T] must be present in the scope.

    readPreference

    The ReadPreference for this request. If the ReadPreference implies that this request might be run on a Secondary, the slaveOk flag will be set.

    Definition Classes
    GenericQueryBuilder
  22. def cursor[T](implicit reader: BSONDocumentReader[T] = structureReader, ec: ExecutionContext): Cursor[T]

    Sends this query and gets a Cursor of instances of T.

    Sends this query and gets a Cursor of instances of T.

    An implicit Reader[T] must be present in the scope.

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

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

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

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

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

    Definition Classes
    AnyRef
  28. val explainFlag: Boolean

    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  29. val failover: FailoverStrategy

    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  30. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  33. def hint(document: BSONDocument): Self

    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
  34. val hintOption: Option[BSONDocument]

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

    Definition Classes
    Any
  36. def merge: BSONDocument

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

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

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

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

    Sends this query and gets a future Option[T].

    Sends this query and gets a future Option[T].

    An implicit Reader[T] must be present in the scope.

    readPreference

    The ReadPreference for this request. If the ReadPreference implies that this request might be run on a Secondary, the slaveOk flag will be set.

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

    Sends this query and gets a future Option[T].

    Sends this query and gets a future Option[T].

    An implicit Reader[T] must be present in the scope.

    Definition Classes
    GenericQueryBuilder
  42. def options(options: QueryOpts): Self

    Definition Classes
    GenericQueryBuilder
  43. val options: QueryOpts

    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  44. def projection(p: BSONDocument): Self

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

    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
  46. val projectionOption: Option[BSONDocument]

    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  47. def query(selector: BSONDocument): Self

    Sets the query (the selector document).

    Sets the query (the selector document).

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

    Sets the query (the selector document).

    Sets the query (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
  49. val queryOption: Option[BSONDocument]

    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  50. def snapshot(flag: Boolean = true): Self

    Toggles snapshot mode.

    Toggles snapshot mode.

    Definition Classes
    GenericQueryBuilder
  51. val snapshotFlag: Boolean

    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  52. def sort(document: BSONDocument): Self

    Sets the sorting document.

    Sets the sorting document.

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

    Definition Classes
    BSONQueryBuilderGenericQueryBuilder
  54. def structureReader: BSONDocumentReader[BSONDocument]

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

    Definition Classes
    AnyRef
  56. def toStructure[T](writer: BSONDocumentWriter[T], subject: T): BSONDocument

    Attributes
    protected
    Definition Classes
    BSONConverters
  57. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. def writeStructureIntoBuffer[B <: WritableBuffer](document: BSONDocument, buffer: B): B

    Attributes
    protected
    Definition Classes
    BSONConverters
  61. def [B](y: B): (BSONQueryBuilder, B)

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

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (bSONQueryBuilder: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (bSONQueryBuilder: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: BSONQueryBuilder

    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to ArrowAssoc[BSONQueryBuilder] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (bSONQueryBuilder: ArrowAssoc[BSONQueryBuilder]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: BSONQueryBuilder

    Implicit information
    This member is added by an implicit conversion from BSONQueryBuilder to Ensuring[BSONQueryBuilder] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (bSONQueryBuilder: Ensuring[BSONQueryBuilder]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from BSONGenericHandlers

Inherited from BSONConverters

Inherited from GenericQueryBuilder[BSONDocument, BSONDocumentReader, BSONDocumentWriter]

Inherited from GenericHandlers[BSONDocument, BSONDocumentReader, BSONDocumentWriter]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from BSONQueryBuilder to StringAdd

Inherited by implicit conversion any2stringfmt from BSONQueryBuilder to StringFormat

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

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

Ungrouped