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

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

    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
    QueryOptsQueryOps
  8. def batchSize(n: Int): QueryOpts

    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
    QueryOptsQueryOps
  9. val batchSizeN: Int
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  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

    Toggles Exhaust

    Toggles Exhaust

    Definition Classes
    QueryOptsQueryOps
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. def flags(n: Int): QueryOpts

    Sets the query flags.

  19. val flagsN: Int
  20. 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()
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def noCursorTimeout: QueryOpts

    Toggles NoCursorTimeout: The cursor will not expire automatically

    Toggles NoCursorTimeout: The cursor will not expire automatically

    Definition Classes
    QueryOptsQueryOps
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def oplogReplay: QueryOpts

    Toggles OplogReplay

    Toggles OplogReplay

    Definition Classes
    QueryOptsQueryOps
  28. def partial: QueryOpts

    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
    QueryOptsQueryOps
  29. def productElementNames: Iterator[String]
    Definition Classes
    Product
  30. def skip(n: Int): QueryOpts

    Sets the number of documents to skip.

    Sets the number of documents to skip.

    Definition Classes
    QueryOptsQueryOps
  31. val skipN: Int
  32. def slaveOk: QueryOpts

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

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

    Definition Classes
    QueryOptsQueryOps
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def tailable: QueryOpts

    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
    QueryOptsQueryOps
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. 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