Kotlin BSON • Multiplatform abstraction for different BSON implementations • opensavvy.ktmongo.bson • BsonArrayReader
BsonArrayReader¶
@LowLevelApi
interface BsonArrayReader
Utilities for decomposing a BsonArray into its elements.
To obtain an instance of this interface, see BsonArray.reader.
Example¶
Properties¶
elements¶
abstract val elements: List<BsonValueReader>
A list of all elements in this reader.
Functions¶
asValue¶
abstract fun asValue(): BsonValueReader
Reads this entire array as a BsonValueReader.
read¶
abstract fun read(index: Int): BsonValueReader?
Attempts to read an element at index index.
toBson¶
Reads this document into a BsonArray instance.
toString¶
JSON representation of the array this BsonArrayReader is reading, as a String.