Class/Object

org.mongodb.scala.bson.collection.immutable

Document

Related Docs: object Document | package immutable

Permalink

case class Document(underlying: BsonDocument) extends BaseDocument[Document] with TraversableLike[(String, BsonValue), 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, Serializable, Product, Equals, BaseDocument[Document], Bson, Traversable[(String, BsonValue)], GenTraversable[(String, BsonValue)], GenericTraversableTemplate[(String, BsonValue), Traversable], TraversableLike[(String, BsonValue), Document], GenTraversableLike[(String, BsonValue), Document], Parallelizable[(String, BsonValue), ParIterable[(String, BsonValue)]], TraversableOnce[(String, BsonValue)], GenTraversableOnce[(String, BsonValue)], FilterMonadic[(String, BsonValue), Document], HasNewBuilder[(String, BsonValue), Document], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Document
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. BaseDocument
  7. Bson
  8. Traversable
  9. GenTraversable
  10. GenericTraversableTemplate
  11. TraversableLike
  12. GenTraversableLike
  13. Parallelizable
  14. TraversableOnce
  15. GenTraversableOnce
  16. FilterMonadic
  17. HasNewBuilder
  18. AnyRef
  19. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Document(underlying: BsonDocument)

    Permalink

    underlying

    the underlying BsonDocument which stores the data.

Type Members

  1. type Self = Document

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]

    Permalink
    Definition Classes
    TraversableLike

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(elems: CanBeBsonElement*): Document

    Permalink

    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. def ++[B >: (String, BsonValue), That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Document, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  5. def ++:[B >: (String, BsonValue), That](that: Traversable[B])(implicit bf: CanBuildFrom[Document, B, That]): That

    Permalink
    Definition Classes
    TraversableLike
  6. def ++:[B >: (String, BsonValue), That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Document, B, That]): That

    Permalink
    Definition Classes
    TraversableLike
  7. def -(elems: String*): Document

    Permalink

    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
  8. def --(xs: GenTraversableOnce[String]): Document

    Permalink

    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
  9. def /:[B](z: B)(op: (B, (String, BsonValue)) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  10. def :\[B](z: B)(op: ((String, BsonValue), B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  11. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def addString(b: StringBuilder): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  13. def addString(b: StringBuilder, sep: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  14. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  15. def aggregate[B](z: ⇒ B)(seqop: (B, (String, BsonValue)) ⇒ B, combop: (B, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  16. def apply(underlying: BsonDocument): Document

    Permalink

    Creates a new immutable document

    Creates a new immutable document

    underlying

    the underlying BsonDocument

    returns

    a new document

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

    Permalink

    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
  18. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  19. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @throws( ... )
  20. def collect[B, That](pf: PartialFunction[(String, BsonValue), B])(implicit bf: CanBuildFrom[Document, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  21. def collectFirst[B](pf: PartialFunction[(String, BsonValue), B]): Option[B]

    Permalink
    Definition Classes
    TraversableOnce
  22. def companion: GenericCompanion[Traversable]

    Permalink
    Definition Classes
    Traversable → GenTraversable → GenericTraversableTemplate
  23. def contains(key: String): Boolean

    Permalink

    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
  24. def copyToArray[B >: (String, BsonValue)](xs: Array[B], start: Int, len: Int): Unit

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  25. def copyToArray[B >: (String, BsonValue)](xs: Array[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. def copyToArray[B >: (String, BsonValue)](xs: Array[B], start: Int): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  27. def copyToBuffer[B >: (String, BsonValue)](dest: Buffer[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce
  28. def count(p: ((String, BsonValue)) ⇒ Boolean): Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  29. def drop(n: Int): Document

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  30. def dropWhile(p: ((String, BsonValue)) ⇒ Boolean): Document

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  31. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. def exists(p: ((String, BsonValue)) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  33. def filter(p: ((String, BsonValue)) ⇒ Boolean): Document

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  34. def filterKeys(p: (String) ⇒ Boolean): Document

    Permalink

    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
  35. def filterNot(p: ((String, BsonValue)) ⇒ Boolean): Document

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  36. def find(p: ((String, BsonValue)) ⇒ Boolean): Option[(String, BsonValue)]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  37. def flatMap[B, That](f: ((String, BsonValue)) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Document, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  38. def flatten[B](implicit asTraversable: ((String, BsonValue)) ⇒ GenTraversableOnce[B]): Traversable[B]

    Permalink
    Definition Classes
    GenericTraversableTemplate
  39. def fold[A1 >: (String, BsonValue)](z: A1)(op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  40. def foldLeft[B](z: B)(op: (B, (String, BsonValue)) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  41. def foldRight[B](z: B)(op: ((String, BsonValue), B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  42. def forall(p: ((String, BsonValue)) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  43. def foreach[U](f: ((String, BsonValue)) ⇒ U): Unit

    Permalink

    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 → GenericTraversableTemplate → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  44. def genericBuilder[B]: Builder[B, Traversable[B]]

    Permalink
    Definition Classes
    GenericTraversableTemplate
  45. def get[TResult <: BsonValue](key: String)(implicit e: DefaultsTo[TResult, BsonValue], ct: ClassTag[TResult]): Option[TResult]

    Permalink

    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
  46. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  47. def getOrElse[B >: BsonValue](key: String, default: CanBeBsonValue): B

    Permalink

    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
  48. def groupBy[K](f: ((String, BsonValue)) ⇒ K): Map[K, Document]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  49. def hasDefiniteSize: Boolean

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  50. def head: (String, BsonValue)

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  51. def headOption: Option[(String, BsonValue)]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  52. def init: Document

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  53. def inits: Iterator[Document]

    Permalink
    Definition Classes
    TraversableLike
  54. def isEmpty: Boolean

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  55. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  56. final def isTraversableAgain: Boolean

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  57. def iterator: Iterator[(String, BsonValue)]

    Permalink

    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
  58. def keySet: Set[String]

    Permalink

    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
  59. def keys: Iterable[String]

    Permalink

    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
  60. def keysIterator: Iterator[String]

    Permalink

    Creates an iterator for all keys.

    Creates an iterator for all keys.

    returns

    an iterator over all keys.

    Definition Classes
    BaseDocument
  61. def last: (String, BsonValue)

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  62. def lastOption: Option[(String, BsonValue)]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  63. def map[B, That](f: ((String, BsonValue)) ⇒ B)(implicit bf: CanBuildFrom[Document, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  64. def max[B >: (String, BsonValue)](implicit cmp: Ordering[B]): (String, BsonValue)

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  65. def maxBy[B](f: ((String, BsonValue)) ⇒ B)(implicit cmp: Ordering[B]): (String, BsonValue)

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  66. def min[B >: (String, BsonValue)](implicit cmp: Ordering[B]): (String, BsonValue)

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  67. def minBy[B](f: ((String, BsonValue)) ⇒ B)(implicit cmp: Ordering[B]): (String, BsonValue)

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  68. def mkString: String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  69. def mkString(sep: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  70. def mkString(start: String, sep: String, end: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  71. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  72. def newBuilder: Builder[(String, BsonValue), Document]

    Permalink

    Creates a new builder for this collection type.

    Creates a new builder for this collection type.

    Definition Classes
    Document → GenericTraversableTemplate → TraversableLike → HasNewBuilder
  73. def nonEmpty: Boolean

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  74. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  75. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  76. def par: ParIterable[(String, BsonValue)]

    Permalink
    Definition Classes
    Parallelizable
  77. def parCombiner: Combiner[(String, BsonValue), ParIterable[(String, BsonValue)]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  78. def partition(p: ((String, BsonValue)) ⇒ Boolean): (Document, Document)

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  79. def product[B >: (String, BsonValue)](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  80. def reduce[A1 >: (String, BsonValue)](op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  81. def reduceLeft[B >: (String, BsonValue)](op: (B, (String, BsonValue)) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce
  82. def reduceLeftOption[B >: (String, BsonValue)](op: (B, (String, BsonValue)) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  83. def reduceOption[A1 >: (String, BsonValue)](op: (A1, A1) ⇒ A1): Option[A1]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  84. def reduceRight[B >: (String, BsonValue)](op: ((String, BsonValue), B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  85. def reduceRightOption[B >: (String, BsonValue)](op: ((String, BsonValue), B) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  86. def repr: Document

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  87. def reversed: List[(String, BsonValue)]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  88. def scan[B >: (String, BsonValue), That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Document, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  89. def scanLeft[B, That](z: B)(op: (B, (String, BsonValue)) ⇒ B)(implicit bf: CanBuildFrom[Document, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  90. def scanRight[B, That](z: B)(op: ((String, BsonValue), B) ⇒ B)(implicit bf: CanBuildFrom[Document, B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  91. def seq: Traversable[(String, BsonValue)]

    Permalink
    Definition Classes
    Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  92. def size: Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  93. def slice(from: Int, until: Int): Document

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  94. def span(p: ((String, BsonValue)) ⇒ Boolean): (Document, Document)

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  95. def splitAt(n: Int): (Document, Document)

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  96. def stringPrefix: String

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  97. def sum[B >: (String, BsonValue)](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  98. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  99. def tail: Document

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  100. def tails: Iterator[Document]

    Permalink
    Definition Classes
    TraversableLike
  101. def take(n: Int): Document

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  102. def takeWhile(p: ((String, BsonValue)) ⇒ Boolean): Document

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  103. def thisCollection: Traversable[(String, BsonValue)]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  104. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, (String, BsonValue), Col[(String, BsonValue)]]): Col[(String, BsonValue)]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  105. def toArray[B >: (String, BsonValue)](implicit arg0: ClassTag[B]): Array[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  106. def toBsonDocument[TDocument](documentClass: Class[TDocument], codecRegistry: CodecRegistry): BsonDocument

    Permalink
    Definition Classes
    BaseDocument → Bson
  107. def toBsonDocument(): BsonDocument

    Permalink
    Definition Classes
    BaseDocument → Bson
  108. def toBuffer[B >: (String, BsonValue)]: Buffer[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  109. def toCollection(repr: Document): Traversable[(String, BsonValue)]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  110. def toIndexedSeq: IndexedSeq[(String, BsonValue)]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  111. def toIterable: Iterable[(String, BsonValue)]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. def toIterator: Iterator[(String, BsonValue)]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableOnce
  113. def toJson(settings: JsonWriterSettings): String

    Permalink

    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
  114. def toJson(): String

    Permalink

    Gets a JSON representation of this document

    Gets a JSON representation of this document

    returns

    a JSON representation of this document

    Definition Classes
    BaseDocument
  115. def toList: List[(String, BsonValue)]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  116. def toMap[T, U](implicit ev: <:<[(String, BsonValue), (T, U)]): Map[T, U]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  117. def toSeq: Seq[(String, BsonValue)]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  118. def toSet[B >: (String, BsonValue)]: Set[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  119. def toStream: Stream[(String, BsonValue)]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableOnce
  120. def toString(): String

    Permalink
    Definition Classes
    TraversableLike → Any
  121. def toTraversable: Traversable[(String, BsonValue)]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  122. def toVector: Vector[(String, BsonValue)]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  123. def transpose[B](implicit asTraversable: ((String, BsonValue)) ⇒ GenTraversableOnce[B]): Traversable[Traversable[B]]

    Permalink
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  124. val underlying: BsonDocument

    Permalink

    the underlying BsonDocument which stores the data.

    the underlying BsonDocument which stores the data.

    Attributes
    protected[org.mongodb.scala]
    Definition Classes
    Document → BaseDocument
  125. def unzip[A1, A2](implicit asPair: ((String, BsonValue)) ⇒ (A1, A2)): (Traversable[A1], Traversable[A2])

    Permalink
    Definition Classes
    GenericTraversableTemplate
  126. def unzip3[A1, A2, A3](implicit asTriple: ((String, BsonValue)) ⇒ (A1, A2, A3)): (Traversable[A1], Traversable[A2], Traversable[A3])

    Permalink
    Definition Classes
    GenericTraversableTemplate
  127. def updated(elems: CanBeBsonElement*): Document

    Permalink

    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
  128. def updated[B](key: String, value: B)(implicit transformer: BsonTransformer[B]): Document

    Permalink

    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
  129. def values: Iterable[BsonValue]

    Permalink

    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
  130. def valuesIterator: Iterator[BsonValue]

    Permalink

    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
  131. def view(from: Int, until: Int): TraversableView[(String, BsonValue), Document]

    Permalink
    Definition Classes
    TraversableLike
  132. def view: TraversableView[(String, BsonValue), Document]

    Permalink
    Definition Classes
    TraversableLike
  133. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  135. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  136. def withFilter(p: ((String, BsonValue)) ⇒ Boolean): FilterMonadic[(String, BsonValue), Document]

    Permalink
    Definition Classes
    TraversableLike → FilterMonadic

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from BaseDocument[Document]

Inherited from Bson

Inherited from Traversable[(String, BsonValue)]

Inherited from GenTraversable[(String, BsonValue)]

Inherited from GenericTraversableTemplate[(String, BsonValue), Traversable]

Inherited from TraversableLike[(String, BsonValue), Document]

Inherited from GenTraversableLike[(String, BsonValue), Document]

Inherited from Parallelizable[(String, BsonValue), ParIterable[(String, BsonValue)]]

Inherited from TraversableOnce[(String, BsonValue)]

Inherited from GenTraversableOnce[(String, BsonValue)]

Inherited from FilterMonadic[(String, BsonValue), Document]

Inherited from HasNewBuilder[(String, BsonValue), Document]

Inherited from AnyRef

Inherited from Any

Ungrouped