BSONSerializationPack

reactivemongo.api.bson.collection.BSONSerializationPack$

The default serialization pack.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Types

type Document = BSONDocument
type ElementProducer = ElementProducer
type NarrowValueReader[A] = BSONReader[A]
type Reader[A] = BSONDocumentReader[A]
type Value = BSONValue
type Writer[A] = BSONDocumentWriter[A]

Value members

Concrete methods

def deserialize[A](document: Document, reader: BSONDocumentReader[A]): A
def isEmpty(document: Document): Boolean

Returns true if the given document is empty.

Returns true if the given document is empty.

Attributes

override def readAndDeserialize[A](response: Response, reader: BSONDocumentReader[A]): A

Attributes

Definition Classes
def serialize[A](a: A, writer: BSONDocumentWriter[A]): Document
def widenReader[T](r: BSONReader[T]): BSONReader[T]
def writer[A](f: A => Document): BSONDocumentWriter[A]

Prepares a writer from the given serialization function.

Prepares a writer from the given serialization function.

Attributes

Concrete fields

lazy val IdentityReader: BSONDocumentReader[Document]
lazy val IdentityWriter: BSONDocumentWriter[Document]