Alias for add
Alias for the corresponding merge
Alias for the corresponding merge
Alias for BSONArray.prepend
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.
Alias for merge
.
The code indicating the BSON type for this value
Returns true if the given name
corresponds to a valid index.
Returns true if the given name
corresponds to a valid index.
true if the key is found
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).
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.
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
.
The first/mandatory nested element, if any
The first/mandatory nested element, if any
Indicates whether this element set is empty
Indicates whether this element set is empty
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 a BSONArray with the given value prepended to its elements.
The number of elements
The number of elements
Returns a Map
representation for this element set.
Returns a Map
representation for this element set.
Returns the values for the nested elements.
Returns the values for the nested elements.
Merge the produced elements at the beginning of this set
Merge the produced elements at the beginning of this set
Alias for merge
.
Alias for merge
.
(Since version 0.12.0) Use the corresponding merge
Returns an iterator for the values as elements, with their indexes as names (e.g.
Returns an iterator for the values as elements, with their indexes as names (e.g. "0" for the first).
(Since version 0.12.0) Use elements
(Since version 0.12.0) Use size
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.