JvmBsonFactory

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

Properties

Link copied to clipboard
abstract val codecRegistry: CodecRegistry

The codec registry used by this factory to create new documents.

Functions

Link copied to clipboard
open override fun buildArray(instance: ERROR CLASS: Symbol not found for BsonValueWriteable): BsonArray
abstract override fun buildArray(block: ERROR CLASS: Symbol not found for BsonValueWriter.() -> Unit): BsonArray
abstract override fun buildArray(block: BsonValueWriter.() -> Unit): BsonArray
Link copied to clipboard
open override fun buildDocument(instance: ERROR CLASS: Symbol not found for BsonFieldWriteable): Bson
abstract override fun buildDocument(block: ERROR CLASS: Symbol not found for BsonFieldWriter.() -> Unit): Bson
abstract override fun buildDocument(block: BsonFieldWriter.() -> Unit): Bson
abstract override fun <T : Any> buildDocument(obj: T, type: KType, klass: KClass<T>): Bson
Link copied to clipboard
abstract override fun readArray(bytes: ByteArray): BsonArray

open fun readArray(value: BsonArray): BsonArray

Instantiates a new BsonArray instance by wrapping the official driver's BsonArray.

Link copied to clipboard
abstract override fun readDocument(bytes: ByteArray): Bson

open fun readDocument(value: BsonDocument): Bson

Instantiates a new Bson instance by wrapping the official driver's BsonDocument.

Link copied to clipboard
open fun readValue(value: BsonValue): BsonValueReader

Instantiates a new BsonValueReader instance by wrapping the official driver's BsonValue.