JvmBsonContext

class JvmBsonContext(codecRegistry: CodecRegistry, objectIdGenerator: ObjectIdGenerator = ObjectIdGenerator.Jvm()) : BsonContext, ObjectIdGenerator(source)

BSON implementation based on the official Java and Kotlin MongoDB drivers.

Constructors

Link copied to clipboard
constructor(codecRegistry: CodecRegistry, objectIdGenerator: ObjectIdGenerator = ObjectIdGenerator.Jvm())

Properties

Link copied to clipboard
val codecRegistry: CodecRegistry

Functions

Link copied to clipboard
open override fun buildArray(instance: BsonValueWriteable): BsonArray
open override fun buildArray(block: BsonValueWriter.() -> Unit): BsonArray
Link copied to clipboard
open override fun buildDocument(instance: BsonFieldWriteable): Bson
open override fun buildDocument(block: BsonFieldWriter.() -> Unit): Bson
Link copied to clipboard
open override fun newId(): ObjectId
Link copied to clipboard
open override fun readArray(bytes: ByteArray): BsonArray
Link copied to clipboard
open override fun readDocument(bytes: ByteArray): Bson