Skip to content

Kotlin BSON • Based on the official MongoDB implementationopensavvy.ktmongo.bson.officialJvmBsonFactory

JvmBsonFactory

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

Properties

codecRegistry

@LowLevelApi
abstract val codecRegistry: CodecRegistry

Functions

buildArray

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
@LowLevelApi
abstract override fun buildArray(block: BsonValueWriter.() -> Unit): BsonArray

buildDocument

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
@LowLevelApi
abstract override fun buildDocument(block: BsonFieldWriter.() -> Unit): Bson
@LowLevelApi
abstract override fun <T : Any> buildDocument(obj: T, type: KType, klass: KClass<T>): Bson

readArray

@LowLevelApi
abstract override fun readArray(bytes: ByteArray): BsonArray

readDocument

@LowLevelApi
abstract override fun readDocument(bytes: ByteArray): Bson