Packages

trait BSONWriter[T, B <: BSONValue] extends AnyRef

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BSONWriter
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def write(t: T): B

    Writes an instance of T as a BSON value.

    Writes an instance of T as a BSON value.

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

Concrete Value Members

  1. final def afterWrite[U <: BSONValue](f: (B) => U): BSONWriter[T, U]

    Returns a BSON writer that returns the result of applying f on the BSON value from this writer.

    Returns a BSON writer that returns the result of applying f on the BSON value from this writer.

    f

    the function to apply

  2. final def beforeWrite[U](f: (U) => T): BSONWriter[U, B]
  3. def writeOpt(t: T): Option[B]

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

  4. def writeTry(t: T): Try[B]

    Tries to produce a BSON value from an instance of T.