Packages

trait BSONDocumentReader[T] extends BSONReader[BSONDocument, T]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BSONDocumentReader
  2. BSONReader
  3. AnyRef
  4. Any
Implicitly
  1. by valueProducer
  2. by element2Producer
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def read(bson: BSONDocument): T

    Reads a BSON value and produce an instance of T.

    Reads a BSON value and produce an instance of T.

    This method may throw exceptions at runtime. If used outside a reader, one should consider readTry(bson: B): Try[T] or readOpt(bson: B): Option[T].

    Definition Classes
    BSONReader

Concrete Value Members

  1. final def afterRead[U](f: (T) => U): BSONReader[BSONDocument, U]

    Returns a BSON reader that returns the result of applying f on the result of this reader.

    Returns a BSON reader that returns the result of applying f on the result of this reader.

    f

    the function to apply

    Definition Classes
    BSONReader
  2. final def beforeRead[U <: BSONValue](f: (U) => BSONDocument): BSONReader[U, T]
    Definition Classes
    BSONReader
  3. def readOpt(bson: BSONDocument): Option[T]

    Tries to produce an instance of T from the bson value, returns None if an error occurred.

    Tries to produce an instance of T from the bson value, returns None if an error occurred.

    Definition Classes
    BSONReader
  4. def readTry(bson: BSONDocument): Try[T]

    Tries to produce an instance of T from the bson value.

    Tries to produce an instance of T from the bson value.

    Definition Classes
    BSONReader