Skip to content

opensavvy.ktmongo.bson.types

Data types specified in the BSON specification or in the MongoDB specification.

Types

BooleanVector

ByteVector

A Vector of Byte elements (BSON's Int8Vector).

ExperimentalGeoBsonApi

@RequiresOptIn(message = "This API is part of the experimental GeoJSON implementation. Please provide feedback in https://gitlab.com/opensavvy/ktmongo/-/work_items/76")
annotation class ExperimentalGeoBsonApi

FloatVector

A Vector of Float elements (BSON's Float32Vector).

Geo

GeoJSON types supported by MongoDB.

InstantAsBsonDatetimeSerializer

ObjectId

Small, likely unique, fast to generate, ordered identifier.

ObjectIdGenerator

interface ObjectIdGenerator

An object responsible for generating new ObjectId instances.

Timestamp

Internal MongoDB timestamp used in the oplog.

UuidAsBsonBinarySerializer

Serializer for kotlin.uuid.Uuid that serializes as a BsonType.BinaryData with subtype 4 (UUID).

Vector

A dense array of numeric values stored in a binary storage efficient for storage and retrieval.

Functions

compareTo

operator fun Instant.compareTo(objectId: ObjectId): Int

toObjectIdRange

Converts a range of Instant to a range of ObjectId.

Converts a range of Instant to a range of ObjectId.