Packages

package codecs

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. codecs
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type BsonTypeClassMap = bson.codecs.BsonTypeClassMap

    Type alias to the BsonTypeClassMap

  2. type BsonTypeCodecMap = bson.codecs.BsonTypeCodecMap

    Type alias to the BsonTypeCodecMap

  3. case class DocumentCodecProvider() extends CodecProvider with Product with Serializable

    A CodecProvider for the Document class and all the default Codec implementations on which it depends.

  4. case class ImmutableDocumentCodec(registry: Option[CodecRegistry]) extends CollectibleCodec[collection.immutable.Document] with Product with Serializable

    A Codec for immutable Document instances.

    A Codec for immutable Document instances.

    As the underlying driver expects documents to be mutable the driver has direct access to the Documents underlying mutable BsonDocument instance and therefore will mutate the document when adding an _id

  5. case class IterableCodec(registry: CodecRegistry, bsonTypeClassMap: BsonTypeClassMap, valueTransformer: Transformer) extends Codec[Iterable[_]] with Product with Serializable

    Encodes and decodes Iterable objects.

    Encodes and decodes Iterable objects.

    Annotations
    @SuppressWarnings()
    Since

    1.2

  6. case class IterableCodecProvider(bsonTypeClassMap: BsonTypeClassMap, valueTransformer: Option[Transformer]) extends CodecProvider with Product with Serializable

    A CodecProvider for classes than implement the Iterable interface.

    A CodecProvider for classes than implement the Iterable interface.

    bsonTypeClassMap

    the non-null BsonTypeClassMap with which to construct instances of DocumentCodec and ListCodec.

    valueTransformer

    the value transformer for decoded values

    Since

    1.2

  7. case class MutableDocumentCodec(registry: Option[CodecRegistry]) extends CollectibleCodec[collection.mutable.Document] with Product with Serializable

    A Codec for mutable Document instances.

Value Members

  1. val DEFAULT_CODEC_REGISTRY: CodecRegistry
  2. object BsonTypeClassMap

    Companion to return the default BsonTypeClassMap

  3. object ImmutableDocumentCodec extends Serializable

    Companion helper for immutable Document instances.

  4. object IterableCodec extends Serializable

    IterableCodec companion object

    IterableCodec companion object

    Since

    1.2

  5. object IterableCodecProvider extends Serializable

    IterableCodecProvider companion object

    IterableCodecProvider companion object

    Since

    1.2

  6. object Macros

    Macro based Codecs

    Macro based Codecs

    Allows the compile time creation of Codecs for case classes.

    The recommended approach is to use the implicit Macros.createCodecProvider[T](clazz:Class[T])* method to help build a codecRegistry: import org.mongodb.scala.bson.codecs.Macros.createCodecProvider import org.bson.codecs.configuration.CodecRegistries.{fromRegistries, fromProviders}

    case class Contact(phone: String) case class User(_id: Int, username: String, age: Int, hobbies: List[String], contacts: List[Contact])

    val codecRegistry = fromRegistries(fromProviders(classOf[User], classOf[Contact]), MongoClient.DEFAULT_CODEC_REGISTRY)

    Since

    2.0

  7. object MutableDocumentCodec extends Serializable

    Companion helper for mutable Document instances.

Inherited from AnyRef

Inherited from Any

Ungrouped