kdrant
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
kdrant
kdrant-core
/
dev.kdrant.model
/
CreateShardKeyRequest
Create
Shard
Key
Request
@
Serializable
data
class
CreateShardKeyRequest
(
val
shardKey
:
ShardKey
,
val
shardsNumber
:
Int
?
=
null
,
val
replicationFactor
:
Int
?
=
null
,
val
placement
:
List
<
Long
>
?
=
null
)
Request body for
PUT /collections/{name}/shards
.
Members
Constructors
Create
Shard
Key
Request
Link copied to clipboard
constructor
(
shardKey
:
ShardKey
,
shardsNumber
:
Int
?
=
null
,
replicationFactor
:
Int
?
=
null
,
placement
:
List
<
Long
>
?
=
null
)
Properties
placement
Link copied to clipboard
@
SerialName
(
value
=
"placement"
)
val
placement
:
List
<
Long
>
?
replication
Factor
Link copied to clipboard
@
SerialName
(
value
=
"replication_factor"
)
val
replicationFactor
:
Int
?
shard
Key
Link copied to clipboard
@
SerialName
(
value
=
"shard_key"
)
val
shardKey
:
ShardKey
shards
Number
Link copied to clipboard
@
SerialName
(
value
=
"shards_number"
)
val
shardsNumber
:
Int
?