Packages

  • package root

    This is the documentation for the MongoDB Scala driver.

    This is the documentation for the MongoDB Scala driver.

    Driver structure

    The mongodb scala driver.

    To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.

    Notable packages include:

    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package mongodb
    Definition Classes
    org
  • package scala

    The MongoDB Scala Driver package

    The MongoDB Scala Driver package

    Contains type aliases and companion objects to help when using the Scala API

    Definition Classes
    mongodb
    Since

    1.0

  • package bson

    The bson package, contains mirrors and companion objects for Bson values.

    The bson package, contains mirrors and companion objects for Bson values.

    Definition Classes
    scala
  • package collection

    The collection package.

    The collection package.

    Definition Classes
    bson
  • package immutable
    Definition Classes
    collection
  • Document

case class Document(underlying: BsonDocument) extends BaseDocument[Document] with IterableOps[(String, BsonValue), Iterable, Document] with StrictOptimizedIterableOps[(String, BsonValue), Iterable, Document] with Product with Serializable

An immutable Document implementation.

A strictly typed Map[String, BsonValue] like structure that traverses the elements in insertion order. Unlike native scala maps there is no variance in the value type and it always has to be a BsonValue.

underlying

the underlying BsonDocument which stores the data.

Linear Supertypes
Serializable, Product, Equals, StrictOptimizedIterableOps[(String, BsonValue), Iterable, Document], BaseDocument[Document], Bson, Iterable[(String, BsonValue)], IterableFactoryDefaults[(String, BsonValue), Iterable], IterableOps[(String, BsonValue), Iterable, Document], IterableOnceOps[(String, BsonValue), Iterable, Document], IterableOnce[(String, BsonValue)], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Document
  2. Serializable
  3. Product
  4. Equals
  5. StrictOptimizedIterableOps
  6. BaseDocument
  7. Bson
  8. Iterable
  9. IterableFactoryDefaults
  10. IterableOps
  11. IterableOnceOps
  12. IterableOnce
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Document(underlying: BsonDocument)

    underlying

    the underlying BsonDocument which stores the data.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(elems: CanBeBsonElement*): Document

    Creates a new document containing a new key/value and all the existing key/values.

    Creates a new document containing a new key/value and all the existing key/values.

    Mapping kv will override existing mappings from this document with the same key.

    elems

    the key/value mapping to be added. This can be any valid (String, BsonValue) pair that can be transformed into a BsonElement via BsonMagnets.CanBeBsonElement implicits and any BsonTransformers that are in scope.

    returns

    a new document containing mappings of this document and the mapping kv.

    Definition Classes
    BaseDocument
  4. final def ++(suffix: IterableOnce[(String, BsonValue)]): Document
    Annotations
    @inline()
  5. final def ++[B >: (String, BsonValue)](suffix: IterableOnce[B]): Iterable[B]
    Definition Classes
    IterableOps
    Annotations
    @inline()
  6. def -(elems: String*): Document

    Removes one or more elements to this document and returns a new document.

    Removes one or more elements to this document and returns a new document.

    elems

    the remaining elements to remove.

    returns

    A new document with the keys removed.

    Definition Classes
    BaseDocument
  7. def --(xs: GenTraversableOnce[String]): Document

    Removes a number of elements provided by a traversable object and returns a new document without the removed elements.

    Removes a number of elements provided by a traversable object and returns a new document without the removed elements.

    xs

    the traversable object consisting of key-value pairs.

    returns

    a new document with the bindings of this document and those from xs.

    Definition Classes
    BaseDocument
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def addString(b: StringBuilder): StringBuilder
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  10. final def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  11. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    IterableOnceOps
  12. def apply(underlying: BsonDocument): Document

    Creates a new immutable document

    Creates a new immutable document

    underlying

    the underlying BsonDocument

    returns

    a new document

    Attributes
    protected[scala]
    Definition Classes
    Document → BaseDocument
  13. def apply[TResult <: BsonValue](key: String)(implicit e: DefaultsTo[TResult, BsonValue], ct: ClassTag[TResult]): TResult

    Retrieves the value which is associated with the given key or throws a NoSuchElementException.

    Retrieves the value which is associated with the given key or throws a NoSuchElementException.

    key

    the key

    returns

    the value associated with the given key, or throws NoSuchElementException.

    Definition Classes
    BaseDocument
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. def className: String
    Attributes
    protected[this]
    Definition Classes
    Iterable
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  17. final def coll: Document.this.type
    Attributes
    protected
    Definition Classes
    Iterable → IterableOps
  18. def collect[B](pf: PartialFunction[(String, BsonValue), B]): Iterable[B]
    Definition Classes
    StrictOptimizedIterableOps → IterableOps → IterableOnceOps
  19. def collectFirst[B](pf: PartialFunction[(String, BsonValue), B]): Option[B]
    Definition Classes
    IterableOnceOps
  20. def concat(suffix: IterableOnce[(String, BsonValue)]): Document
  21. def concat[B >: (String, BsonValue)](suffix: IterableOnce[B]): Iterable[B]
    Definition Classes
    IterableOps
  22. def contains(key: String): Boolean

    Tests whether this map contains a binding for a key

    Tests whether this map contains a binding for a key

    key

    the key

    returns

    true if there is a binding for key in this document, false otherwise.

    Definition Classes
    BaseDocument
  23. def copyToArray[B >: (String, BsonValue)](xs: Array[B], start: Int, len: Int): Int
    Definition Classes
    IterableOnceOps
  24. def copyToArray[B >: (String, BsonValue)](xs: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
  25. def copyToArray[B >: (String, BsonValue)](xs: Array[B]): Int
    Definition Classes
    IterableOnceOps
  26. def corresponds[B](that: IterableOnce[B])(p: ((String, BsonValue), B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  27. def count(p: ((String, BsonValue)) => Boolean): Int
    Definition Classes
    IterableOnceOps
  28. def drop(n: Int): Document
    Definition Classes
    IterableOps → IterableOnceOps
  29. def dropRight(n: Int): Document
    Definition Classes
    StrictOptimizedIterableOps → IterableOps
  30. def dropWhile(p: ((String, BsonValue)) => Boolean): Document
    Definition Classes
    IterableOps → IterableOnceOps
  31. def empty: Document
    Definition Classes
    Document → IterableFactoryDefaults → IterableOps
  32. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. def exists(p: ((String, BsonValue)) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  34. def filter(pred: ((String, BsonValue)) => Boolean): Document
    Definition Classes
    StrictOptimizedIterableOps → IterableOps → IterableOnceOps
  35. def filterImpl(pred: ((String, BsonValue)) => Boolean, isFlipped: Boolean): Document
    Attributes
    protected[scala.collection]
    Definition Classes
    StrictOptimizedIterableOps
  36. def filterKeys(p: (String) => Boolean): Document

    Filters this document by retaining only keys satisfying a predicate.

    Filters this document by retaining only keys satisfying a predicate.

    p

    the predicate used to test keys

    returns

    a new document consisting only of those key value pairs of this map where the key satisfies the predicate p.

    Definition Classes
    BaseDocument
  37. def filterNot(pred: ((String, BsonValue)) => Boolean): Document
    Definition Classes
    StrictOptimizedIterableOps → IterableOps → IterableOnceOps
  38. def find(p: ((String, BsonValue)) => Boolean): Option[(String, BsonValue)]
    Definition Classes
    IterableOnceOps
  39. def flatMap[B](f: ((String, BsonValue)) => IterableOnce[B]): Iterable[B]
    Definition Classes
    StrictOptimizedIterableOps → IterableOps → IterableOnceOps
  40. def flatten[B](implicit toIterableOnce: ((String, BsonValue)) => IterableOnce[B]): Iterable[B]
    Definition Classes
    StrictOptimizedIterableOps → IterableOps → IterableOnceOps
  41. def fold[A1 >: (String, BsonValue)](z: A1)(op: (A1, A1) => A1): A1
    Definition Classes
    IterableOnceOps
  42. def foldLeft[B](z: B)(op: (B, (String, BsonValue)) => B): B
    Definition Classes
    IterableOnceOps
  43. def foldRight[B](z: B)(op: ((String, BsonValue), B) => B): B
    Definition Classes
    IterableOnceOps
  44. def forall(p: ((String, BsonValue)) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  45. def foreach[U](f: ((String, BsonValue)) => U): Unit

    Applies a function f to all elements of this document.

    Applies a function f to all elements of this document.

    U

    the type parameter describing the result of function f. This result will always be ignored. Typically U is Unit, but this is not necessary.

    f

    the function that is applied for its side-effect to every element. The result of function f is discarded.

    Definition Classes
    Document → IterableOnceOps
  46. def fromSpecific(coll: IterableOnce[(String, BsonValue)]): Document
    Attributes
    protected
    Definition Classes
    Document → IterableFactoryDefaults → IterableOps
  47. def get[TResult <: BsonValue](key: String)(implicit e: DefaultsTo[TResult, BsonValue], ct: ClassTag[TResult]): Option[TResult]

    Optionally returns the value associated with a key.

    Optionally returns the value associated with a key.

    key

    the key we want to lookup

    returns

    an option value containing the value associated with key in this document, or None if none exists.

    Definition Classes
    BaseDocument
  48. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  49. def getOrElse[B >: BsonValue](key: String, default: CanBeBsonValue): B

    Returns the value associated with a key, or a default value if the key is not contained in the map.

    Returns the value associated with a key, or a default value if the key is not contained in the map.

    B

    the result type of the default computation.

    key

    the key.

    default

    The default value in case no binding for key is found in the Document. This can be any BsonValue type or any native type that has an implicit BsonTransformer in scope.

    returns

    the value associated with key if it exists, otherwise the result of the default computation.

    Definition Classes
    BaseDocument
  50. def groupBy[K](f: ((String, BsonValue)) => K): Map[K, Document]
    Definition Classes
    IterableOps
  51. def groupMap[K, B](key: ((String, BsonValue)) => K)(f: ((String, BsonValue)) => B): Map[K, Iterable[B]]
    Definition Classes
    IterableOps
  52. def groupMapReduce[K, B](key: ((String, BsonValue)) => K)(f: ((String, BsonValue)) => B)(reduce: (B, B) => B): Map[K, B]
    Definition Classes
    IterableOps
  53. def grouped(size: Int): Iterator[Document]
    Definition Classes
    IterableOps
  54. def head: (String, BsonValue)
    Definition Classes
    IterableOps
  55. def headOption: Option[(String, BsonValue)]
    Definition Classes
    IterableOps
  56. def init: Document
    Definition Classes
    IterableOps
  57. def inits: Iterator[Document]
    Definition Classes
    IterableOps
  58. def isEmpty: Boolean
    Definition Classes
    IterableOnceOps
  59. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  60. def isTraversableAgain: Boolean
    Definition Classes
    IterableOps → IterableOnceOps
  61. def iterableFactory: IterableFactory[Iterable]
    Definition Classes
    Iterable → IterableOps
  62. def iterator: Iterator[(String, BsonValue)]

    Creates a new iterator over all key/value pairs in this document

    Creates a new iterator over all key/value pairs in this document

    returns

    the new iterator

    Definition Classes
    BaseDocument → IterableOnce
  63. def keySet: Set[String]

    Collects all keys of this document in a set.

    Collects all keys of this document in a set.

    returns

    a set containing all keys of this document.

    Definition Classes
    BaseDocument
  64. def keys: Iterable[String]

    Collects all keys of this document in an iterable collection.

    Collects all keys of this document in an iterable collection.

    returns

    the keys of this document as an iterable.

    Definition Classes
    BaseDocument
  65. def keysIterator: Iterator[String]

    Creates an iterator for all keys.

    Creates an iterator for all keys.

    returns

    an iterator over all keys.

    Definition Classes
    BaseDocument
  66. def knownSize: Int
    Definition Classes
    IterableOnce
  67. def last: (String, BsonValue)
    Definition Classes
    IterableOps
  68. def lastOption: Option[(String, BsonValue)]
    Definition Classes
    IterableOps
  69. def lazyZip[B](that: Iterable[B]): LazyZip2[(String, BsonValue), B, Document.this.type]
    Definition Classes
    Iterable
  70. def map[B](f: ((String, BsonValue)) => (String, BsonValue)): Document
  71. def map[B](f: ((String, BsonValue)) => B): Iterable[B]
    Definition Classes
    StrictOptimizedIterableOps → IterableOps → IterableOnceOps
  72. def max[B >: (String, BsonValue)](implicit ord: Ordering[B]): (String, BsonValue)
    Definition Classes
    IterableOnceOps
  73. def maxBy[B](f: ((String, BsonValue)) => B)(implicit cmp: Ordering[B]): (String, BsonValue)
    Definition Classes
    IterableOnceOps
  74. def maxByOption[B](f: ((String, BsonValue)) => B)(implicit cmp: Ordering[B]): Option[(String, BsonValue)]
    Definition Classes
    IterableOnceOps
  75. def maxOption[B >: (String, BsonValue)](implicit ord: Ordering[B]): Option[(String, BsonValue)]
    Definition Classes
    IterableOnceOps
  76. def min[B >: (String, BsonValue)](implicit ord: Ordering[B]): (String, BsonValue)
    Definition Classes
    IterableOnceOps
  77. def minBy[B](f: ((String, BsonValue)) => B)(implicit cmp: Ordering[B]): (String, BsonValue)
    Definition Classes
    IterableOnceOps
  78. def minByOption[B](f: ((String, BsonValue)) => B)(implicit cmp: Ordering[B]): Option[(String, BsonValue)]
    Definition Classes
    IterableOnceOps
  79. def minOption[B >: (String, BsonValue)](implicit ord: Ordering[B]): Option[(String, BsonValue)]
    Definition Classes
    IterableOnceOps
  80. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  81. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  82. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  83. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  84. def newSpecificBuilder: Builder[(String, BsonValue), Document]
    Attributes
    protected
    Definition Classes
    Document → IterableFactoryDefaults → IterableOps
  85. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding("nonEmpty is defined as !isEmpty; override isEmpty instead", "2.13.0")
  86. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  87. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  88. def partition(p: ((String, BsonValue)) => Boolean): (Document, Document)
    Definition Classes
    StrictOptimizedIterableOps → IterableOps
  89. def partitionMap[A1, A2](f: ((String, BsonValue)) => Either[A1, A2]): (Iterable[A1], Iterable[A2])
    Definition Classes
    StrictOptimizedIterableOps → IterableOps
  90. def product[B >: (String, BsonValue)](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  91. def productElementNames: Iterator[String]
    Definition Classes
    Product
  92. def reduce[B >: (String, BsonValue)](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  93. def reduceLeft[B >: (String, BsonValue)](op: (B, (String, BsonValue)) => B): B
    Definition Classes
    IterableOnceOps
  94. def reduceLeftOption[B >: (String, BsonValue)](op: (B, (String, BsonValue)) => B): Option[B]
    Definition Classes
    IterableOnceOps
  95. def reduceOption[B >: (String, BsonValue)](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  96. def reduceRight[B >: (String, BsonValue)](op: ((String, BsonValue), B) => B): B
    Definition Classes
    IterableOnceOps
  97. def reduceRightOption[B >: (String, BsonValue)](op: ((String, BsonValue), B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  98. def reversed: Iterable[(String, BsonValue)]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  99. def scan[B >: (String, BsonValue)](z: B)(op: (B, B) => B): Iterable[B]
    Definition Classes
    IterableOps
  100. def scanLeft[B](z: B)(op: (B, (String, BsonValue)) => B): Iterable[B]
    Definition Classes
    StrictOptimizedIterableOps → IterableOps → IterableOnceOps
  101. def scanRight[B](z: B)(op: ((String, BsonValue), B) => B): Iterable[B]
    Definition Classes
    IterableOps
  102. def size: Int
    Definition Classes
    IterableOnceOps
  103. def sizeCompare(that: Iterable[_]): Int
    Definition Classes
    IterableOps
  104. def sizeCompare(otherSize: Int): Int
    Definition Classes
    IterableOps
  105. final def sizeIs: SizeCompareOps
    Definition Classes
    IterableOps
    Annotations
    @inline()
  106. def slice(from: Int, until: Int): Document
    Definition Classes
    IterableOps → IterableOnceOps
  107. def sliding(size: Int, step: Int): Iterator[Document]
    Definition Classes
    IterableOps
  108. def sliding(size: Int): Iterator[Document]
    Definition Classes
    IterableOps
  109. def span(p: ((String, BsonValue)) => Boolean): (Document, Document)
    Definition Classes
    StrictOptimizedIterableOps → IterableOps → IterableOnceOps
  110. def splitAt(n: Int): (Document, Document)
    Definition Classes
    IterableOps → IterableOnceOps
  111. def stepper[S <: Stepper[_]](implicit shape: StepperShape[(String, BsonValue), S]): S
    Definition Classes
    IterableOnce
  112. final def strictOptimizedCollect[B, C2](b: Builder[B, C2], pf: PartialFunction[(String, BsonValue), B]): C2
    Attributes
    protected[this]
    Definition Classes
    StrictOptimizedIterableOps
    Annotations
    @inline()
  113. final def strictOptimizedConcat[B >: (String, BsonValue), C2](that: IterableOnce[B], b: Builder[B, C2]): C2
    Attributes
    protected[this]
    Definition Classes
    StrictOptimizedIterableOps
    Annotations
    @inline()
  114. final def strictOptimizedFlatMap[B, C2](b: Builder[B, C2], f: ((String, BsonValue)) => IterableOnce[B]): C2
    Attributes
    protected[this]
    Definition Classes
    StrictOptimizedIterableOps
    Annotations
    @inline()
  115. final def strictOptimizedFlatten[B, C2](b: Builder[B, C2])(implicit toIterableOnce: ((String, BsonValue)) => IterableOnce[B]): C2
    Attributes
    protected[this]
    Definition Classes
    StrictOptimizedIterableOps
    Annotations
    @inline()
  116. final def strictOptimizedMap[B, C2](b: Builder[B, C2], f: ((String, BsonValue)) => B): C2
    Attributes
    protected[this]
    Definition Classes
    StrictOptimizedIterableOps
    Annotations
    @inline()
  117. final def strictOptimizedZip[B, C2](that: IterableOnce[B], b: Builder[((String, BsonValue), B), C2]): C2
    Attributes
    protected[this]
    Definition Classes
    StrictOptimizedIterableOps
    Annotations
    @inline()
  118. def stringPrefix: String
    Attributes
    protected[this]
    Definition Classes
    Iterable
    Annotations
    @deprecatedOverriding("Override className instead", "2.13.0")
  119. def sum[B >: (String, BsonValue)](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  120. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  121. def tail: Document
    Definition Classes
    IterableOps
  122. def tails: Iterator[Document]
    Definition Classes
    IterableOps
  123. def take(n: Int): Document
    Definition Classes
    IterableOps → IterableOnceOps
  124. def takeRight(n: Int): Document
    Definition Classes
    StrictOptimizedIterableOps → IterableOps
  125. def takeWhile(p: ((String, BsonValue)) => Boolean): Document
    Definition Classes
    IterableOps → IterableOnceOps
  126. def tapEach[U](f: ((String, BsonValue)) => U): Document
    Definition Classes
    StrictOptimizedIterableOps → IterableOps → IterableOnceOps
  127. def to[C1](factory: Factory[(String, BsonValue), C1]): C1
    Definition Classes
    IterableOnceOps
  128. def toArray[B >: (String, BsonValue)](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    IterableOnceOps
  129. def toBsonDocument[TDocument](documentClass: Class[TDocument], codecRegistry: CodecRegistry): BsonDocument
    Definition Classes
    BaseDocument → Bson
  130. def toBsonDocument(): BsonDocument
    Definition Classes
    BaseDocument → Bson
  131. final def toBuffer[B >: (String, BsonValue)]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  132. def toIndexedSeq: IndexedSeq[(String, BsonValue)]
    Definition Classes
    IterableOnceOps
  133. final def toIterable: Document.this.type
    Definition Classes
    Iterable → IterableOps
  134. def toJson(settings: JsonWriterSettings): String

    Gets a JSON representation of this document using the given JsonWriterSettings.

    Gets a JSON representation of this document using the given JsonWriterSettings.

    settings

    the JSON writer settings

    returns

    a JSON representation of this document

    Definition Classes
    BaseDocument
  135. def toJson(): String

    Gets a JSON representation of this document

    Gets a JSON representation of this document

    returns

    a JSON representation of this document

    Definition Classes
    BaseDocument
  136. def toList: List[(String, BsonValue)]
    Definition Classes
    IterableOnceOps
  137. def toMap[K, V](implicit ev: <:<[(String, BsonValue), (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  138. def toSeq: Seq[(String, BsonValue)]
    Definition Classes
    IterableOnceOps
  139. def toSet[B >: (String, BsonValue)]: Set[B]
    Definition Classes
    IterableOnceOps
  140. def toString(): String
    Definition Classes
    Iterable → AnyRef → Any
  141. def toVector: Vector[(String, BsonValue)]
    Definition Classes
    IterableOnceOps
  142. def transpose[B](implicit asIterable: ((String, BsonValue)) => Iterable[B]): Iterable[Iterable[B]]
    Definition Classes
    IterableOps
  143. val underlying: BsonDocument

    The underlying bson document

    The underlying bson document

    Restricted access to the underlying BsonDocument

    Attributes
    protected[scala]
    Definition Classes
    Document → BaseDocument
  144. def unzip[A1, A2](implicit asPair: ((String, BsonValue)) => (A1, A2)): (Iterable[A1], Iterable[A2])
    Definition Classes
    StrictOptimizedIterableOps → IterableOps
  145. def unzip3[A1, A2, A3](implicit asTriple: ((String, BsonValue)) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
    Definition Classes
    StrictOptimizedIterableOps → IterableOps
  146. def updated(elems: CanBeBsonElement*): Document

    Creates a new Document consisting of all key/value pairs of the current document plus a new pair of a given key and value.

    Creates a new Document consisting of all key/value pairs of the current document plus a new pair of a given key and value.

    elems

    The key/values to add. This can be any valid (String, BsonValue) pair that can be transformed into a BsonElement via BsonMagnets.CanBeBsonElement implicits and any BsonTransformers that are in scope.

    returns

    A fresh immutable document with the binding from key to value added to the new document.

    Definition Classes
    BaseDocument
  147. def updated[B](key: String, value: B)(implicit transformer: BsonTransformer[B]): Document

    Creates a new Document consisting of all key/value pairs of the current document plus a new pair of a given key and value.

    Creates a new Document consisting of all key/value pairs of the current document plus a new pair of a given key and value.

    key

    The key to add

    value

    The new value

    returns

    A fresh immutable document with the binding from key to value added to the new document.

    Definition Classes
    BaseDocument
  148. def values: Iterable[BsonValue]

    Collects all values of this document in an iterable collection.

    Collects all values of this document in an iterable collection.

    returns

    the values of this document as an iterable.

    Definition Classes
    BaseDocument
  149. def valuesIterator: Iterator[BsonValue]

    Creates an iterator for all values in this document.

    Creates an iterator for all values in this document.

    returns

    an iterator over all values that are associated with some key in this document.

    Definition Classes
    BaseDocument
  150. def view: View[(String, BsonValue)]
    Definition Classes
    IterableOps
  151. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  152. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  153. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  154. def withFilter(p: ((String, BsonValue)) => Boolean): WithFilter[(String, BsonValue), Iterable]
    Definition Classes
    IterableOps
  155. def zip[B](that: IterableOnce[B]): Iterable[((String, BsonValue), B)]
    Definition Classes
    StrictOptimizedIterableOps → IterableOps
  156. def zipAll[A1 >: (String, BsonValue), B](that: Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]
    Definition Classes
    IterableOps
  157. def zipWithIndex: Iterable[((String, BsonValue), Int)]
    Definition Classes
    StrictOptimizedIterableOps → IterableOps → IterableOnceOps

Deprecated Value Members

  1. def ++:[B >: (String, BsonValue)](that: IterableOnce[B]): Iterable[B]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use ++ instead of ++: for collections of type Iterable

  2. final def /:[B](z: B)(op: (B, (String, BsonValue)) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldLeft instead of /:

  3. final def :\[B](z: B)(op: ((String, BsonValue), B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldRight instead of :\

  4. def aggregate[B](z: => B)(seqop: (B, (String, BsonValue)) => B, combop: (B, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) aggregate is not relevant for sequential collections. Use foldLeft(z)(seqop) instead.

  5. def companion: IterableFactory[Iterable]
    Definition Classes
    IterableOps
    Annotations
    @deprecated @deprecatedOverriding("Use iterableFactory instead", "2.13.0") @inline()
    Deprecated

    (Since version 2.13.0) Use iterableFactory instead

  6. final def copyToBuffer[B >: (String, BsonValue)](dest: Buffer[B]): Unit
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use dest ++= coll instead

  7. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  8. def hasDefiniteSize: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)

  9. final def repr: Document
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use coll instead of repr in a collection implementation, use the collection value itself from the outside

  10. def seq: Document.this.type
    Definition Classes
    Iterable
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Iterable.seq always returns the iterable itself

  11. final def toIterator: Iterator[(String, BsonValue)]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator instead of .toIterator

  12. final def toStream: Stream[(String, BsonValue)]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .to(LazyList) instead of .toStream

  13. final def toTraversable: Traversable[(String, BsonValue)]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use toIterable instead

  14. def view(from: Int, until: Int): View[(String, BsonValue)]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .view.slice(from, until) instead of .view(from, until)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from StrictOptimizedIterableOps[(String, BsonValue), Iterable, Document]

Inherited from BaseDocument[Document]

Inherited from Bson

Inherited from Iterable[(String, BsonValue)]

Inherited from IterableFactoryDefaults[(String, BsonValue), Iterable]

Inherited from IterableOps[(String, BsonValue), Iterable, Document]

Inherited from IterableOnceOps[(String, BsonValue), Iterable, Document]

Inherited from IterableOnce[(String, BsonValue)]

Inherited from AnyRef

Inherited from Any

Ungrouped