SundayT1998/milvus-client/client does not have a README file
impl Show for ClientErrorpub(all) suberror IteratorError {
EndOfIterator
Closed
Setup(String)
Rpc(Bool, Bool, String)
} derive(Debug)impl Show for IteratorErrorasync fn Client::create_collection(self : Client, option : CreateCollectionOption) -> Unit raise ClientErrorasync fn Client::create_partition(self : Client, option : CreatePartitionOption) -> Unit raise ClientErrorasync fn Client::describe_collection(self : Client, option : DescribeCollectionOption) -> CollectionDescription raise ClientErrorasync fn Client::describe_index(self : Client, option : DescribeIndexOption) -> Array[IndexDescription] raise ClientErrorasync fn Client::drop_collection(self : Client, option : DropCollectionOption) -> Unit raise ClientErrorasync fn Client::drop_partition(self : Client, option : DropPartitionOption) -> Unit raise ClientErrorasync fn Client::get_flush_state(self : Client, option : GetFlushStateOption) -> Bool raise ClientErrorasync fn Client::get_load_state(self : Client, option : GetLoadStateOption) -> LoadState raise ClientErrorasync fn Client::has_collection(self : Client, option : DescribeCollectionOption) -> Bool raise ClientErrorasync fn Client::has_partition(self : Client, option : HasPartitionOption) -> Bool raise ClientErrorasync fn Client::list_collections(self : Client, option : ListCollectionsOption) -> Array[String] raise ClientErrorasync fn Client::list_partitions(self : Client, option : ListPartitionsOption) -> Array[String] raise ClientErrorasync fn Client::load_collection(self : Client, option : LoadCollectionOption) -> LoadTask raise ClientErrorasync fn Client::load_partitions(self : Client, option : LoadPartitionsOption) -> LoadTask raise ClientErrorasync fn Client::query_iterator(self : Client, option : QueryIteratorOption) -> QueryIterator raise IteratorErrorasync fn Client::release_collection(self : Client, option : ReleaseCollectionOption) -> Unit raise ClientErrorasync fn Client::release_partitions(self : Client, option : ReleasePartitionsOption) -> Unit raise ClientErrorasync fn Client::search_iterator(self : Client, option : SearchIteratorOption) -> SearchIterator raise IteratorErrorpub(all) struct CollectionDescription {
name : String
id : Int64
schema : CollectionSchema
physical_channels : Array[String]
virtual_channels : Array[String]
consistency_level : ConsistencyLevel
shard_num : Int
properties : Array[(String, String)]
update_timestamp : UInt64
} derive(Debug)pub(all) struct CreateCollectionOption {
name : String
shard_num : Int
schema : CollectionSchema?
dim : Int
auto_id : Bool
enable_dynamic_schema : Bool
pk_field_name : String
vector_field_name : String
varchar_pk : Bool
varchar_pk_max_length : Int
consistency_level : ConsistencyLevel
properties : Array[(String, String)]
num_partitions : Int64
}fn CreateCollectionOption::with_auto_id(self : CreateCollectionOption, auto_id : Bool) -> CreateCollectionOptionfn CreateCollectionOption::with_consistency_level(self : CreateCollectionOption, level : ConsistencyLevel) -> CreateCollectionOptionfn CreateCollectionOption::with_dynamic_schema(self : CreateCollectionOption, enable? : Bool) -> CreateCollectionOptionfn CreateCollectionOption::with_num_partitions(self : CreateCollectionOption, num_partitions : Int64) -> CreateCollectionOptionfn CreateCollectionOption::with_pk_field_name(self : CreateCollectionOption, name : String) -> CreateCollectionOptionfn CreateCollectionOption::with_property(self : CreateCollectionOption, key : String, value : String) -> CreateCollectionOptionfn CreateCollectionOption::with_shard_num(self : CreateCollectionOption, shard_num : Int) -> CreateCollectionOptionfn CreateCollectionOption::with_varchar_pk(self : CreateCollectionOption, varchar_pk : Bool, max_length : Int) -> CreateCollectionOptionfn CreateCollectionOption::with_vector_field_name(self : CreateCollectionOption, name : String) -> CreateCollectionOptionpub(all) struct CreatePartitionOption {
collection_name : String
partition_name : String
}pub(all) struct DeleteOption {
collection_name : String
partition_name : String
expr : String
consistency_level : ConsistencyLevel?
}fn DeleteOption::with_consistency_level(self : DeleteOption, level : ConsistencyLevel) -> DeleteOptionpub(all) struct DescribeIndexOption {
collection_name : String
field_name : String
index_name : String
}fn DescribeIndexOption::with_field_name(self : DescribeIndexOption, field_name : String) -> DescribeIndexOptionfn DescribeIndexOption::with_index_name(self : DescribeIndexOption, index_name : String) -> DescribeIndexOptionpub(all) struct DropIndexOption {
collection_name : String
index_name : String
}pub(all) struct DropPartitionOption {
collection_name : String
partition_name : String
}pub(all) struct FlushOption {
collection_name : String
check_interval_millis : Int
}pub(all) struct GetFlushStateOption {
collection_name : String
segment_ids : Array[Int64]
flush_timestamp : UInt64
}pub(all) struct HasPartitionOption {
collection_name : String
partition_name : String
}pub(all) struct ListCollectionsOption {
show_loaded : Bool
}pub(all) struct ListPartitionsOption {
collection_name : String
}fn LoadCollectionOption::with_check_interval_millis(self : LoadCollectionOption, millis : Int) -> LoadCollectionOptionfn LoadCollectionOption::with_load_fields(self : LoadCollectionOption, load_fields : Array[String]) -> LoadCollectionOptionfn LoadCollectionOption::with_load_param(self : LoadCollectionOption, key : String, value : String) -> LoadCollectionOptionfn LoadCollectionOption::with_refresh(self : LoadCollectionOption, refresh? : Bool) -> LoadCollectionOptionfn LoadCollectionOption::with_replica(self : LoadCollectionOption, replica_number : Int) -> LoadCollectionOptionfn LoadCollectionOption::with_replica_number(self : LoadCollectionOption, replica_number : Int) -> LoadCollectionOptionfn LoadCollectionOption::with_resource_groups(self : LoadCollectionOption, resource_groups : Array[String]) -> LoadCollectionOptionfn LoadCollectionOption::with_skip_load_dynamic_field(self : LoadCollectionOption, skip? : Bool) -> LoadCollectionOptionfn LoadPartitionsOption::with_check_interval_millis(self : LoadPartitionsOption, millis : Int) -> LoadPartitionsOptionfn LoadPartitionsOption::with_load_fields(self : LoadPartitionsOption, load_fields : Array[String]) -> LoadPartitionsOptionfn LoadPartitionsOption::with_load_param(self : LoadPartitionsOption, key : String, value : String) -> LoadPartitionsOptionfn LoadPartitionsOption::with_refresh(self : LoadPartitionsOption, refresh? : Bool) -> LoadPartitionsOptionfn LoadPartitionsOption::with_replica(self : LoadPartitionsOption, replica_number : Int) -> LoadPartitionsOptionfn LoadPartitionsOption::with_replica_number(self : LoadPartitionsOption, replica_number : Int) -> LoadPartitionsOptionfn LoadPartitionsOption::with_resource_groups(self : LoadPartitionsOption, resource_groups : Array[String]) -> LoadPartitionsOptionfn LoadPartitionsOption::with_skip_load_dynamic_field(self : LoadPartitionsOption, skip? : Bool) -> LoadPartitionsOptionpub(all) struct MutationResult {
ids : ColumnValue?
insert_count : Int64
delete_count : Int64
upsert_count : Int64
timestamp : UInt64
} derive(Debug)pub struct QueryIterator {
// private fields
}pub(all) struct QueryIteratorOption {
collection_name : String
partition_names : Array[String]
expr : String
output_fields : Array[String]
batch_size : Int
limit : Int64
consistency_level : ConsistencyLevel?
} derive(Debug)fn QueryIteratorOption::with_batch_size(self : QueryIteratorOption, batch_size : Int) -> QueryIteratorOptionfn QueryIteratorOption::with_consistency_level(self : QueryIteratorOption, level : ConsistencyLevel) -> QueryIteratorOptionfn QueryIteratorOption::with_filter(self : QueryIteratorOption, expr : String) -> QueryIteratorOptionfn QueryIteratorOption::with_limit(self : QueryIteratorOption, limit : Int64) -> QueryIteratorOptionfn QueryIteratorOption::with_output_fields(self : QueryIteratorOption, output_fields : Array[String]) -> QueryIteratorOptionfn QueryIteratorOption::with_partitions(self : QueryIteratorOption, partition_names : Array[String]) -> QueryIteratorOptionpub(all) struct QueryOption {
collection_name : String
partition_names : Array[String]
expr : String
output_fields : Array[String]
query_params : Array[(String, String)]
consistency_level : ConsistencyLevel?
}fn QueryOption::with_int64_ids(self : QueryOption, field_name : String, ids : Array[Int64]) -> QueryOptionfn QueryOption::with_output_fields(self : QueryOption, output_fields : Array[String]) -> QueryOptionfn QueryOption::with_string_ids(self : QueryOption, field_name : String, ids : Array[String]) -> QueryOptionpub(all) struct ReleaseCollectionOption {
collection_name : String
}pub(all) struct SearchHit {
id : String
string_id : Bool
score : Float
fields : Map[String, ColumnValue]
} derive(Debug)pub struct SearchIterator {
// private fields
}fn SearchIteratorOption::with_anns_field(self : SearchIteratorOption, anns_field : String) -> SearchIteratorOptionfn SearchIteratorOption::with_batch_size(self : SearchIteratorOption, batch_size : Int) -> SearchIteratorOptionfn SearchIteratorOption::with_consistency_level(self : SearchIteratorOption, level : ConsistencyLevel) -> SearchIteratorOptionfn SearchIteratorOption::with_filter(self : SearchIteratorOption, expr : String) -> SearchIteratorOptionfn SearchIteratorOption::with_ignore_growing(self : SearchIteratorOption, ignore_growing? : Bool) -> SearchIteratorOptionfn SearchIteratorOption::with_limit(self : SearchIteratorOption, limit : Int64) -> SearchIteratorOptionfn SearchIteratorOption::with_metric_type(self : SearchIteratorOption, metric_type : MetricType) -> SearchIteratorOptionfn SearchIteratorOption::with_output_fields(self : SearchIteratorOption, output_fields : Array[String]) -> SearchIteratorOptionfn SearchIteratorOption::with_partitions(self : SearchIteratorOption, partition_names : Array[String]) -> SearchIteratorOptionfn SearchIteratorOption::with_search_param(self : SearchIteratorOption, key : String, value : String) -> SearchIteratorOptionpub(all) struct SearchOption {
collection_name : String
partition_names : Array[String]
anns_field : String
limit : Int
vectors : Array[ColumnValue]
expr : String
output_fields : Array[String]
metric_type : MetricType?
search_params : Array[(String, String)]
offset : Int
ignore_growing : Bool
round_decimal : Int
consistency_level : ConsistencyLevel?
}fn SearchOption::with_consistency_level(self : SearchOption, level : ConsistencyLevel) -> SearchOptionfn SearchOption::with_output_fields(self : SearchOption, output_fields : Array[String]) -> SearchOptionfn SearchOption::with_partitions(self : SearchOption, partition_names : Array[String]) -> SearchOptionfn SearchOption::with_search_param(self : SearchOption, key : String, value : String) -> SearchOptionfn WriteColumn::to_field_data(self : WriteColumn, is_dynamic? : Bool) -> FieldData raise ClientErrorpub(all) struct WriteOption {
collection_name : String
partition_name : String
columns : Array[WriteColumn]
partial_update : Bool
}let default_flush_check_interval_millis : Intlet default_load_check_interval_millis : Intfn delete_by_int64_ids(collection_name : String, field_name : String, ids : Array[Int64]) -> DeleteOptionfn delete_by_string_ids(collection_name : String, field_name : String, ids : Array[String]) -> DeleteOptionlet iterator_key : Stringfn new_create_index_option(collection_name : String, field_name : String, index : Index) -> CreateIndexOptionfn new_create_partition_option(collection_name : String, partition_name : String) -> CreatePartitionOptionfn new_drop_partition_option(collection_name : String, partition_name : String) -> DropPartitionOptionfn new_get_flush_state_option(collection_name : String, segment_ids : Array[Int64], flush_timestamp : UInt64) -> GetFlushStateOptionfn new_get_load_state_option(collection_name : String, partition_names? : Array[String]) -> GetLoadStateOptionfn new_has_partition_option(collection_name : String, partition_name : String) -> HasPartitionOptionfn new_load_partitions_option(collection_name : String, partition_names : Array[String]) -> LoadPartitionsOptionfn new_release_partitions_option(collection_name : String, partition_names : Array[String]) -> ReleasePartitionsOptionfn new_search_iterator_option(collection_name : String, limit : Int, vectors : Array[ColumnValue]) -> SearchIteratorOptionfn new_search_option(collection_name : String, limit : Int, vectors : Array[ColumnValue]) -> SearchOptionInstall
Download zipMilvus vector database client for MoonBit
Dependencies