case class BSONArray(stream: Stream[Try[BSONValue]]) extends BSONValue with BSONElementSet 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.
- Alphabetic
- By Inheritance
- BSONArray
- Serializable
- Serializable
- Product
- Equals
- BSONElementSet
- ElementProducer
- Producer
- BSONValue
- AnyRef
- Any
- by identityValueProducer
- by ExtendedBSONValue
- by valueProducer
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Type Members
-
type
SetType = BSONArray
- Definition Classes
- BSONArray → BSONElementSet
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
-
def
++(values: Producer[BSONValue]*): BSONArray
Alias for
add -
def
++(array: BSONArray): BSONArray
Alias for the corresponding
mergeAlias for the corresponding
merge- Annotations
- @inline()
-
def
+:(value: Producer[BSONValue]): BSONArray
Alias for BSONArray.prepend
- def ->[B](y: B): (BSONArray, B)
-
def
:~(elements: Producer[BSONElement]*): BSONArray
The name of the produced elements are ignored, instead the indexes are used.
The name of the produced elements are ignored, instead the indexes are used.
- Definition Classes
- BSONArray → BSONElementSet
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
as[T](implicit reader: BSONReader[BSONArray, T]): T
- Implicit
- This member is added by an implicit conversion from BSONArray to ExtendedBSONValue[BSONArray] performed by method ExtendedBSONValue in reactivemongo.bson.BSONValue.
- Definition Classes
- ExtendedBSONValue
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asOpt[T](implicit reader: BSONReader[BSONArray, T]): Option[T]
- Implicit
- This member is added by an implicit conversion from BSONArray to ExtendedBSONValue[BSONArray] performed by method ExtendedBSONValue in reactivemongo.bson.BSONValue.
- Definition Classes
- ExtendedBSONValue
-
def
asTry[T](implicit reader: BSONReader[BSONArray, T]): Try[T]
- Implicit
- This member is added by an implicit conversion from BSONArray to ExtendedBSONValue[BSONArray] performed by method ExtendedBSONValue in reactivemongo.bson.BSONValue.
- Definition Classes
- ExtendedBSONValue
-
val
bson: BSONArray
- Implicit
- This member is added by an implicit conversion from BSONArray to ExtendedBSONValue[BSONArray] performed by method ExtendedBSONValue in reactivemongo.bson.BSONValue.
- Definition Classes
- ExtendedBSONValue
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
code: Byte
The code indicating the BSON type for this value
-
def
contains(name: String): Boolean
Returns true if the given
namecorresponds to a valid index.Returns true if the given
namecorresponds to a valid index.- returns
true if the key is found
- Definition Classes
- BSONArray → BSONElementSet
-
def
elements: List[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).
- Definition Classes
- BSONArray → BSONElementSet
- def ensuring(cond: (BSONArray) ⇒ Boolean, msg: ⇒ Any): BSONArray
- def ensuring(cond: (BSONArray) ⇒ Boolean): BSONArray
- def ensuring(cond: Boolean, msg: ⇒ Any): BSONArray
- def ensuring(cond: Boolean): BSONArray
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
def
get(name: String): Option[BSONValue]
Returns the BSONValue matching the given
name, provided it is a valid string representation of a valid index.Returns the BSONValue matching the given
name, provided it is a valid string representation of a valid index.- Definition Classes
- BSONArray → BSONElementSet
-
def
get(index: Int): Option[BSONValue]
Returns the BSONValue at the given
index.Returns the BSONValue at the given
index.If there is no such
indexor the matching value cannot be deserialized, returnsNone. -
def
getAs[T](index: Int)(implicit reader: BSONReader[_ <: BSONValue, T]): Option[T]
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. -
def
getAsTry[T](index: Int)(implicit reader: BSONReader[_ <: BSONValue, T]): Try[T]
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. TheFailureholds a exceptions.DocumentKeyNotFound if the key could not be found. -
def
getAsUnflattenedTry[T](index: Int)(implicit reader: BSONReader[_ <: BSONValue, T]): Try[Option[T]]
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
SuccessholdingNone. If the value could not be deserialized or converted, returns aFailure. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getTry(index: Int): Try[BSONValue]
Returns the BSONValue at the given
index.Returns the BSONValue at the given
index.If there is no such
indexor the matching value cannot be deserialized, returns aFailure. TheFailureholds a exceptions.DocumentKeyNotFound if the key could not be found. -
def
getUnflattenedTry(index: Int): Try[Option[BSONValue]]
Returns the BSONValue at the given
index.Returns the BSONValue at the given
index.If there is no such
index, the resulting option will beNone. If the matching value could not be deserialized, returns aFailure. -
def
headOption: Option[BSONElement]
The first/mandatory nested element, if any
The first/mandatory nested element, if any
- Definition Classes
- BSONArray → BSONElementSet
-
def
isEmpty: Boolean
Indicates whether this element set is empty
Indicates whether this element set is empty
- Definition Classes
- BSONArray → BSONElementSet
- Annotations
- @inline()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
merge(values: Producer[BSONValue]*): BSONArray
Creates a new BSONArray containing all the elements of this one and the given
elements. -
def
merge(doc: BSONArray): BSONArray
Creates a new BSONArray containing all the elements of this one and the elements of the given document.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
prepend(value: Producer[BSONValue]): BSONArray
Returns a BSONArray with the given value prepended to its elements.
-
def
seeAsOpt[T](implicit reader: BSONReader[_ <: BSONValue, T]): Option[T]
- Implicit
- This member is added by an implicit conversion from BSONArray to ExtendedBSONValue[BSONArray] performed by method ExtendedBSONValue in reactivemongo.bson.BSONValue.
- Definition Classes
- ExtendedBSONValue
-
def
seeAsTry[T](implicit reader: BSONReader[_ <: BSONValue, T]): Try[T]
- Implicit
- This member is added by an implicit conversion from BSONArray to ExtendedBSONValue[BSONArray] performed by method ExtendedBSONValue in reactivemongo.bson.BSONValue.
- Definition Classes
- ExtendedBSONValue
-
def
size: Int
The number of elements
The number of elements
- Definition Classes
- BSONArray → BSONElementSet
- Annotations
- @inline()
- val stream: Stream[Try[BSONValue]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toMap: Map[String, BSONValue]
Returns a
Maprepresentation for this element set.Returns a
Maprepresentation for this element set.- Definition Classes
- BSONElementSet
-
def
toString(): String
- Definition Classes
- BSONArray → AnyRef → Any
-
def
values: Stream[BSONValue]
Returns the values for the nested elements.
Returns the values for the nested elements.
- Definition Classes
- BSONArray → BSONElementSet
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
~:(elements: Producer[BSONElement]): BSONArray
Merge the produced elements at the beginning of this set
Merge the produced elements at the beginning of this set
- Definition Classes
- BSONArray → BSONElementSet
- def →[B](y: B): (BSONArray, B)