object BSONDocument extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- BSONDocument
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def apply(elements: Iterable[(String, BSONValue)]): BSONDocument
Creates a new BSONDocument containing all the
elements
in the givenTraversable
. - def apply(elements: Producer[BSONElement]*): BSONDocument
Creates a new BSONDocument containing all the given
elements
. - def apply(set: BSONElementSet): BSONDocument
Creates a BSONDocument from the given elements set.
- val empty: BSONDocument
An empty BSONDocument.
- def pretty(doc: BSONDocument): String
Returns a String representing the given BSONDocument.
- def read(buffer: ReadableBuffer)(implicit bufferHandler: BufferHandler = DefaultBufferHandler): BSONDocument
Reads a
document
from thebuffer
.Reads a
document
from thebuffer
.Note that the buffer's readerIndex must be set on the start of a document, or it will fail.
- def write(value: BSONDocument, buffer: WritableBuffer)(implicit bufferHandler: BufferHandler = DefaultBufferHandler): WritableBuffer
Writes the
document
into thebuffer
.