case class QueryOpts(skipN: Int = 0, batchSizeN: Int = 0, flagsN: Int = 0) extends QueryOps with Product with Serializable

A helper to make the query options. You may use the methods to set the fields of this class, or set them directly.

skipN

the number of documents to skip.

batchSizeN

the upper limit on the number of documents to retrieve per batch (0 for unspecified)

flagsN

the query flags

Annotations
@deprecated
Deprecated

(Since version 0.19.8) Internal: will be made private

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

Instance Constructors

  1. new QueryOpts(skipN: Int = 0, batchSizeN: Int = 0, flagsN: Int = 0)

    skipN

    the number of documents to skip.

    batchSizeN

    the upper limit on the number of documents to retrieve per batch (0 for unspecified)

    flagsN

    the query flags

Type Members

  1. type Self = QueryOpts
    Definition Classes
    QueryOptsQueryOps

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from QueryOpts toany2stringadd[QueryOpts] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (QueryOpts, B)
    Implicit
    This member is added by an implicit conversion from QueryOpts toArrowAssoc[QueryOpts] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def awaitData: QueryOpts

    Makes the result cursor await data.

    Makes the result cursor await data.

    import reactivemongo.api.QueryOpts
    
    val opts: QueryOpts = QueryOpts().awaitData
    Definition Classes
    QueryOptsQueryOps
  8. def batchSize(n: Int): QueryOpts

    Sets the size of result batches.

    Sets the size of result batches.

    import reactivemongo.api.QueryOpts
    
    val opts: QueryOpts = QueryOpts().batchSize(10)
    Definition Classes
    QueryOptsQueryOps
  9. val batchSizeN: Int
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. def ensuring(cond: (QueryOpts) => Boolean, msg: => Any): QueryOpts
    Implicit
    This member is added by an implicit conversion from QueryOpts toEnsuring[QueryOpts] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (QueryOpts) => Boolean): QueryOpts
    Implicit
    This member is added by an implicit conversion from QueryOpts toEnsuring[QueryOpts] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: => Any): QueryOpts
    Implicit
    This member is added by an implicit conversion from QueryOpts toEnsuring[QueryOpts] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): QueryOpts
    Implicit
    This member is added by an implicit conversion from QueryOpts toEnsuring[QueryOpts] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def exhaust: QueryOpts

    Sets the flag to return all data returned by the query at once rather than splitting the results into batches.

    Sets the flag to return all data returned by the query at once rather than splitting the results into batches.

    import reactivemongo.api.QueryOpts
    
    val opts: QueryOpts = QueryOpts().exhaust
    Definition Classes
    QueryOptsQueryOps
  17. def flags(n: Int): QueryOpts

    Sets the query (raw) flags.

  18. val flagsN: Int
  19. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from QueryOpts toStringFormat[QueryOpts] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def noCursorTimeout: QueryOpts

    Sets the noTimeout flag.

    Sets the noTimeout flag.

    import reactivemongo.api.QueryOpts
    
    val opts: QueryOpts = QueryOpts().noCursorTimeout
    Definition Classes
    QueryOptsQueryOps
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def oplogReplay: QueryOpts

    Toggles OplogReplay

    Toggles OplogReplay

    Definition Classes
    QueryOptsQueryOps
  27. def partial: QueryOpts

    Sets the flag to return partial data from a query against a sharded cluster in which some shards do not respond rather than throwing an error.

    Sets the flag to return partial data from a query against a sharded cluster in which some shards do not respond rather than throwing an error.

    import reactivemongo.api.QueryOpts
    
    val opts: QueryOpts = QueryOpts().partial
    Definition Classes
    QueryOptsQueryOps
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. def skip(n: Int): QueryOpts

    Sets how many documents must be skipped at the beginning of the results.

    Sets how many documents must be skipped at the beginning of the results.

    import reactivemongo.api.QueryOpts
    
    val opts: QueryOpts = QueryOpts().skip(10)
    Definition Classes
    QueryOptsQueryOps
  30. val skipN: Int
  31. def slaveOk: QueryOpts

    Allows querying of a replica slave (slaveOk).

    Allows querying of a replica slave (slaveOk).

    import reactivemongo.api.QueryOpts
    
    val opts: QueryOpts = QueryOpts().slaveOk
    Definition Classes
    QueryOptsQueryOps
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def tailable: QueryOpts

    Makes the result cursor tailable.

    Makes the result cursor tailable.

    import reactivemongo.api.QueryOpts
    
    val opts: QueryOpts = QueryOpts().tailable
    Definition Classes
    QueryOptsQueryOps
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  2. def [B](y: B): (QueryOpts, B)
    Implicit
    This member is added by an implicit conversion from QueryOpts toArrowAssoc[QueryOpts] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from QueryOps

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromQueryOpts to any2stringadd[QueryOpts]

Inherited by implicit conversion StringFormat fromQueryOpts to StringFormat[QueryOpts]

Inherited by implicit conversion Ensuring fromQueryOpts to Ensuring[QueryOpts]

Inherited by implicit conversion ArrowAssoc fromQueryOpts to ArrowAssoc[QueryOpts]

Ungrouped