ShardKey

@Serializable(with = ShardKeySerializer::class)
sealed interface ShardKey

A user-defined sharding key: either a name or a number, the two forms Qdrant accepts.

Custom sharding lets a collection be partitioned on something the application knows about, a region or a tenant, so a query that only concerns one of them touches one shard instead of all of them.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Name(val value: String) : ShardKey

A named key, e.g. region_1.

Link copied to clipboard
data class Num(val value: ULong) : ShardKey

A numeric key.