Packages

sealed trait BSONElementSet extends ElementProducer

Operations for a BSONElement that can contain multiple nested elements.

Self Type
BSONElementSet with BSONValue
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BSONElementSet
  2. ElementProducer
  3. Producer
  4. AnyRef
  5. Any
Implicitly
  1. by valueProducer
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type SetType <: BSONElementSet

Abstract Value Members

  1. abstract def :~(elements: Producer[BSONElement]*): (BSONElementSet.this)#SetType

    Merge the produced elements with this set

  2. abstract def contains(key: String): Boolean

    Checks whether the given key is found in this element set.

    Checks whether the given key is found in this element set.

    key

    the key to be found in the document

    returns

    true if the key is found

  3. abstract def elements: Iterable[BSONElement]

    Returns a list for the values as BSONElements, with their indexes as names (e.g.

    Returns a list for the values as BSONElements, with their indexes as names (e.g. "0" for the first).

  4. abstract def get(key: String): Option[BSONValue]

    Returns the BSONValue associated with the given key.

    Returns the BSONValue associated with the given key. If the key cannot be found, returns None.

    key

    the key to be found in the document

  5. abstract def headOption: Option[BSONElement]

    The first/mandatory nested element, if any

  6. abstract def isEmpty: Boolean

    Indicates whether this element set is empty

  7. abstract def size: Int

    The number of elements

  8. abstract def values: Iterable[BSONValue]

    Returns the values for the nested elements.

  9. abstract def ~:(elements: Producer[BSONElement]): (BSONElementSet.this)#SetType

    Merge the produced elements at the beginning of this set

Concrete Value Members

  1. def toMap: Map[String, BSONValue]

    Returns a Map representation for this element set.