BsonArray¶
@Serializable(with = BsonArray.Serializer::class)
class BsonArray : BsonArray
Pure Kotlin implementation of opensavvy.ktmongo.bson.BsonArray.
To create instances of this class, see BsonFactory.
This page describes the BSON multiplatform implementation. To learn more about the general BSON operations, see
opensavvy.ktmongo.bson.BsonArray.
Navigating BSON types¶
This class is part of the BSON trinity:
-
BsonDocumentrepresents an entire BSON document. -
BsonArrayrepresents an array of BSON values. -
BsonValuerepresents a single value in isolation.
Usage¶
Thread-safety¶
This class is not thread-safe. Although it is not possible to mutate its state, this class uses internal mutation to lazily decode the BSON stream.
Types¶
Serializer¶
object Serializer : KSerializer<BsonArray>
Serializer for the multiplatform opensavvy.ktmongo.bson.multiplatform.BsonArray implementation.
Properties¶
factory¶
open override val factory: BsonFactory
indices¶
lastIndex¶
size¶
Functions¶
asIterable¶
open override fun asIterable(): Iterable<BsonValue>
asList¶
asSequence¶
open override fun asSequence(): Sequence<BsonValue>
asValue¶
decode¶
@ExperimentalSerializationApi
@LowLevelApi
open override fun <T> decode(type: KType): T
decodeElements¶
@LowLevelApi
open fun <T> decodeElements(type: KType): List<T>
equals¶
get¶
hashCode¶
isEmpty¶
isNotEmpty¶
open fun isNotEmpty(): Boolean
iterator¶
toString¶
withIndex¶
open override fun withIndex(): Iterable<IndexedValue<BsonValue>>