Class/Object

reactivemongo.bson

BSONArray

Related Docs: object BSONArray | package bson

Permalink

case class BSONArray(stream: Stream[Try[BSONValue]]) extends BSONValue with Product with Serializable

A BSONArray structure (BSON type 0x04).

A BSONArray is a straightforward BSONDocument where keys are a sequence of positive integers.

A BSONArray is basically a stream of tuples (String, BSONValue) where the first member is a string representation of an index. It is completely lazy. The stream it wraps is a Stream[Try[(String, BSONValue)]] since we cannot be sure that a not yet deserialized value will be processed without error.

Linear Supertypes
Serializable, Serializable, Product, Equals, BSONValue, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BSONArray
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. BSONValue
  7. AnyRef
  8. Any
Implicitly
  1. by ExtendedBSONValue
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BSONArray(stream: Stream[Try[BSONValue]])

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to any2stringadd[BSONArray] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ++(elements: Producer[BSONValue]*): BSONArray

    Permalink

    Alias for add(elements: Producer[BSONValue]*): BSONArray

  5. def ++(array: BSONArray): BSONArray

    Permalink

    Alias for add(arr: BSONArray): BSONArray

  6. def ->[B](y: B): (BSONArray, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to ArrowAssoc[BSONArray] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def add(elements: Producer[BSONValue]*): BSONArray

    Permalink

    Creates a new BSONArray containing all the elements of this one and the given elements.

  9. def add(doc: BSONArray): BSONArray

    Permalink

    Creates a new BSONArray containing all the elements of this one and the elements of the given document.

  10. def as[T](implicit reader: BSONReader[BSONArray, T]): T

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to ExtendedBSONValue[BSONArray] performed by method ExtendedBSONValue in reactivemongo.bson.BSONValue.
    Definition Classes
    ExtendedBSONValue
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def asOpt[T](implicit reader: BSONReader[BSONArray, T]): Option[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to ExtendedBSONValue[BSONArray] performed by method ExtendedBSONValue in reactivemongo.bson.BSONValue.
    Definition Classes
    ExtendedBSONValue
  13. def asTry[T](implicit reader: BSONReader[BSONArray, T]): Try[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to ExtendedBSONValue[BSONArray] performed by method ExtendedBSONValue in reactivemongo.bson.BSONValue.
    Definition Classes
    ExtendedBSONValue
  14. val bson: BSONArray

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to ExtendedBSONValue[BSONArray] performed by method ExtendedBSONValue in reactivemongo.bson.BSONValue.
    Definition Classes
    ExtendedBSONValue
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. val code: Byte

    Permalink
    Definition Classes
    BSONArrayBSONValue
  17. def ensuring(cond: (BSONArray) ⇒ Boolean, msg: ⇒ Any): BSONArray

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to Ensuring[BSONArray] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (BSONArray) ⇒ Boolean): BSONArray

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to Ensuring[BSONArray] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: ⇒ Any): BSONArray

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to Ensuring[BSONArray] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): BSONArray

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to Ensuring[BSONArray] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to StringFormat[BSONArray] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  24. def get(index: Int): Option[BSONValue]

    Permalink

    Returns the BSONValue at the given index.

    Returns the BSONValue at the given index.

    If there is no such index or the matching value cannot be deserialized, returns None.

  25. def getAs[T](index: Int)(implicit reader: BSONReader[_ <: BSONValue, T]): Option[T]

    Permalink

    Gets the BSONValue at the given index, and converts it with the given implicit BSONReader.

    Gets the BSONValue at the given index, and converts it with the given implicit BSONReader.

    If there is no matching value, or the value could not be deserialized or converted, returns a None.

  26. def getAsTry[T](index: Int)(implicit reader: BSONReader[_ <: BSONValue, T]): Try[T]

    Permalink

    Gets the BSONValue at the given index, and converts it with the given implicit BSONReader.

    Gets the BSONValue at the given index, and converts it with the given implicit BSONReader.

    If there is no matching value, or the value could not be deserialized or converted, returns a Failure. The Failure holds a exceptions.DocumentKeyNotFound if the key could not be found.

  27. def getAsUnflattenedTry[T](index: Int)(implicit reader: BSONReader[_ <: BSONValue, T]): Try[Option[T]]

    Permalink

    Gets the BSONValue at the given index, and converts it with the given implicit BSONReader.

    Gets the BSONValue at the given index, and converts it with the given implicit BSONReader.

    If there is no matching value, returns a Success holding None. If the value could not be deserialized or converted, returns a Failure.

  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  29. def getTry(index: Int): Try[BSONValue]

    Permalink

    Returns the BSONValue at the given index.

    Returns the BSONValue at the given index.

    If there is no such index or the matching value cannot be deserialized, returns a Failure. The Failure holds a exceptions.DocumentKeyNotFound if the key could not be found.

  30. def getUnflattenedTry(index: Int): Try[Option[BSONValue]]

    Permalink

    Returns the BSONValue at the given index.

    Returns the BSONValue at the given index.

    If there is no such index, the resulting option will be None. If the matching value could not be deserialized, returns a Failure.

  31. def isEmpty: Boolean

    Permalink

    Is this array empty?

  32. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  33. def iterator: Iterator[Try[(String, BSONValue)]]

    Permalink
  34. lazy val length: Int

    Permalink
  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. def seeAsOpt[T](implicit reader: BSONReader[_ <: BSONValue, T]): Option[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to ExtendedBSONValue[BSONArray] performed by method ExtendedBSONValue in reactivemongo.bson.BSONValue.
    Definition Classes
    ExtendedBSONValue
  39. def seeAsTry[T](implicit reader: BSONReader[_ <: BSONValue, T]): Try[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to ExtendedBSONValue[BSONArray] performed by method ExtendedBSONValue in reactivemongo.bson.BSONValue.
    Definition Classes
    ExtendedBSONValue
  40. val stream: Stream[Try[BSONValue]]

    Permalink
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  42. def toString(): String

    Permalink
    Definition Classes
    BSONArray → AnyRef → Any
  43. def values: Stream[BSONValue]

    Permalink
  44. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. def [B](y: B): (BSONArray, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from BSONArray to ArrowAssoc[BSONArray] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from BSONValue

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion ExtendedBSONValue from BSONArray to ExtendedBSONValue[BSONArray]

Inherited by implicit conversion any2stringadd from BSONArray to any2stringadd[BSONArray]

Inherited by implicit conversion StringFormat from BSONArray to StringFormat[BSONArray]

Inherited by implicit conversion Ensuring from BSONArray to Ensuring[BSONArray]

Inherited by implicit conversion ArrowAssoc from BSONArray to ArrowAssoc[BSONArray]

Ungrouped