Alias for add(elements: Producer[BSONValue]*): BSONArray
Alias for add(arr: BSONArray): BSONArray
Creates a new BSONArray containing all the elements of this one and the given elements
.
Creates a new BSONArray containing all the elements of this one and the elements of the given document.
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
.
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
.
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.
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
.
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.
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
.
Is this array empty?
A
BSONArray
structure (BSON type0x04
).A
BSONArray
is a straightforwardBSONDocument
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 aStream[Try[(String, BSONValue)]]
since we cannot be sure that a not yet deserialized value will be processed without error.