class Qdrant::Api::Collections::Shards

Defined in:

qdrant-api/api/collections/shards.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(conn : Connection) #

[View source]

Instance Method Detail

def bulk_update(collection_name : String, create_sharding_key : Qdrant::Api::CreateShardingKey | Nil = nil, *, timeout : Int32 | Nil = nil) : Response(Qdrant::Api::CreateShardKey200Response) #

Create shard key


[View source]
def delete(collection_name : String, drop_sharding_key : Qdrant::Api::DropShardingKey | Nil = nil, *, timeout : Int32 | Nil = nil) : Response(Qdrant::Api::CreateShardKey200Response) #

Delete shard key


[View source]
def list(collection_name : String) : Response(Qdrant::Api::ListShardKeys200Response) #

List shard keys


[View source]
def snapshot(collection_name : String, shard_id : Int32) : Response(File) #

Download shard snapshot Stream the current state of a shard as a snapshot file


[View source]
def snapshots(collection_name : String, shard_id : Int32) : Response(Qdrant::Api::ListSnapshots200Response) #

List shards snapshots for a collection Get list of snapshots for a shard of a collection


[View source]
def snapshots_delete(collection_name : String, shard_id : Int32, snapshot_name : String, *, wait : Bool | Nil = nil) : Response(Qdrant::Api::RecoverFromUploadedSnapshot200Response) #

Delete shard snapshot Delete snapshot of a shard for a collection


[View source]
def snapshots_get(collection_name : String, shard_id : Int32, snapshot_name : String) : Response(File) #

Download collection snapshot Download specified snapshot of a shard from a collection as a file


[View source]
def snapshots_post(collection_name : String, shard_id : Int32, *, wait : Bool | Nil = nil) : Response(Qdrant::Api::CreateSnapshot200Response) #

Create shard snapshot Create new snapshot of a shard for a collection


[View source]
def snapshots_recover(collection_name : String, shard_id : Int32, shard_snapshot_recover : Qdrant::Api::ShardSnapshotRecover | Nil = nil, *, wait : Bool | Nil = nil) : Response(Qdrant::Api::RecoverFromUploadedSnapshot200Response) #

Recover from a snapshot Recover shard of a local collection data from a snapshot. This will overwrite any data, stored in this shard, for the collection.


[View source]
def snapshots_upload(collection_name : String, shard_id : Int32, snapshot : File | Nil = nil, *, wait : Bool | Nil = nil, priority : Qdrant::Api::SnapshotPriority | Nil = nil, checksum : String | Nil = nil) : Response(Qdrant::Api::RecoverFromUploadedSnapshot200Response) #

Recover shard from an uploaded snapshot Recover shard of a local collection from an uploaded snapshot. This will overwrite any data, stored on this node, for the collection shard.


[View source]