BSONDocumentWriter

trait BSONDocumentWriter[T] extends BSONWriter[T]

BSONWriter specialized for BSONDocument

Companion:
object
trait BSONWriter[T]
class Object
trait Matchable
class Any
object Handler.type

Value members

Abstract methods

override def writeTry(t: T): Try[BSONDocument]
Definition Classes

Concrete methods

final override def beforeWrite[U](f: U => T): BSONDocumentWriter[U]
Definition Classes
@SuppressWarnings(scala.Array.apply[java.lang.String]("AsInstanceOf")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])))
override def narrow[U <: T]: BSONDocumentWriter[U]
Definition Classes
override def writeOpt(t: T): Option[BSONDocument]
Definition Classes

Inherited methods

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

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

If the f function is not defined for a BSONValue, it will results in a Failure.

Value parameters:
f

the partial function to apply

Inherited from:
BSONWriter

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

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

Value parameters:
f

the safe function to apply

Inherited from:
BSONWriter