Skip to content

opensavvy.ktmongo.bson.types

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

Types

BooleanVector

A Vector of Boolean elements (BSON's PackedBitVector).

ByteVector

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

FloatVector

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

InstantAsBsonDatetimeSerializer

Serializer for kotlin.time.Instant that serializes as a BsonType.Datetime.

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.