Package io.milvus.client
Class MilvusMultiServiceClient
java.lang.Object
io.milvus.client.MilvusMultiServiceClient
- All Implemented Interfaces:
MilvusClient
-
Constructor Summary
ConstructorsConstructorDescriptionMilvusMultiServiceClient(@NonNull MultiConnectParam multiConnectParam) Sets connect param for multi milvus clusters. -
Method Summary
Modifier and TypeMethodDescriptionaddUserToRole(AddUserToRoleParam requestParam) The user will get permissions that the role are allowed to perform operations.alterAlias(AlterAliasParam requestParam) Alters alias from a collection to another.alterCollection(AlterCollectionParam requestParam) Alter collection with key-value properties.alterDatabase(AlterDatabaseParam requestParam) Alter database with key value pair.alterIndex(AlterIndexParam requestParam) Alter index with key value properties.bulkInsert(BulkInsertParam requestParam) Import data from external files, currently support JSON formatCheck server healthvoidclose(long maxWaitSeconds) Disconnects from a Milvus server with configurable timeout.createAlias(CreateAliasParam requestParam) Creates an alias for a collection.createCollection(CreateCollectionParam requestParam) Creates a collection in Milvus.createCollection(CreateSimpleCollectionParam requestParam) Creates a collection in Milvus.createCredential(CreateCredentialParam requestParam) Create credential using the given user and password.createDatabase(CreateDatabaseParam requestParam) Creates a database in Milvus.createIndex(CreateIndexParam requestParam) Creates an index on a vector field in the specified collection.createPartition(CreatePartitionParam requestParam) Creates a partition in the specified collection.createResourceGroup(CreateResourceGroupParam requestParam) Create a resource group.createRole(CreateRoleParam requestParam) It will success if the role isn't existed, otherwise fail.delete(DeleteParam requestParam) Deletes entity(s) based on primary key(s) filtered by boolean expression.delete(DeleteIdsParam requestParam) Deletes entity(s) based on the value of primary key.deleteCredential(DeleteCredentialParam requestParam) Delete credential corresponding to the user.describeCollection(DescribeCollectionParam requestParam) Shows the details of a collection, e.g.describeDatabase(DescribeDatabaseParam requestParam) Show detail of database base, such as replica number and resource groups.describeIndex(DescribeIndexParam requestParam) Shows the information of the specified index.describeResourceGroup(DescribeResourceGroupParam requestParam) Describe a resource group.dropAlias(DropAliasParam requestParam) Drops an alias for the specified collection.dropCollection(DropCollectionParam requestParam) Drops a collection.dropDatabase(DropDatabaseParam requestParam) Drops a database.dropIndex(DropIndexParam requestParam) Drops the index on a vector field in the specified collection.dropPartition(DropPartitionParam requestParam) Drops a partition.dropResourceGroup(DropResourceGroupParam requestParam) Drop a resource group.dropRole(DropRoleParam requestParam) It will success if the role is existed, otherwise fail.flush(FlushParam requestParam) Flushes inserted data in buffer into storage.flushAll(boolean syncFlushAll, long syncFlushAllWaitingInterval, long syncFlushAllTimeout) Flush all collections.get(GetIdsParam requestParam) Get entity(s) based on the value of primary key.getBulkInsertState(GetBulkInsertStateParam requestParam) Get state of bulk insert taskgetCollectionStatistics(GetCollectionStatisticsParam requestParam) Shows the statistics information of a collection.getCompactionState(GetCompactionStateParam requestParam) Gets the compaction state by id.getCompactionStateWithPlans(GetCompactionPlansParam requestParam) Gets compaction state with its plan.getFlushAllState(GetFlushAllStateParam requestParam) Get flush state of all segments.getFlushState(GetFlushStateParam requestParam) Get flush state of specified collection.getIndexBuildProgress(GetIndexBuildProgressParam requestParam) Shows the index building progress, such as how many rows are indexed.getIndexState(GetIndexStateParam requestParam) Shows the index building state(in-progress/finished/failed), and the reason for failure (if any).getLoadingProgress(GetLoadingProgressParam requestParam) Get collection loading progressgetLoadState(GetLoadStateParam requestParam) Get collection loading stategetMetrics(GetMetricsParam requestParam) Gets the runtime metrics information of Milvus, returns the result in .json format.getPartitionStatistics(GetPartitionStatisticsParam requestParam) Shows the statistics information of a partition.getPersistentSegmentInfo(GetPersistentSegmentInfoParam requestParam) Gets the information of persistent segments from data node, including row count, persistence state(growing or flushed), etc.getQuerySegmentInfo(GetQuerySegmentInfoParam requestParam) Gets the query information of segments in a collection from query node, including row count, memory usage size, index name, etc.getReplicas(GetReplicasParam requestParam) Returns the collection's replica informationGet server versiongrantRolePrivilege(GrantRolePrivilegeParam requestParam) Grant Role Privilege.hasCollection(HasCollectionParam requestParam) Checks if a collection exists.hasPartition(HasPartitionParam requestParam) Checks if a partition exists in the specified collection.hybridSearch(HybridSearchParam requestParam) Conducts multi vector similarity search with a ranker for rearrangement.com.google.common.util.concurrent.ListenableFuture<R<SearchResults>> hybridSearchAsync(HybridSearchParam requestParam) Conducts multi vector similarity search asynchronously with a ranker for rearrangement.insert(InsertParam requestParam) Inserts entities into a specified collection .insert(InsertRowsParam requestParam) Inserts rows data into a specified collection .com.google.common.util.concurrent.ListenableFuture<R<MutationResult>> insertAsync(InsertParam requestParam) Inserts entities into a specified collection asynchronously.listAliases(ListAliasesParam requestParam) List all alias for a collection.listBulkInsertTasks(ListBulkInsertTasksParam requestParam) List bulk insert taskslistCollections(ListCollectionsParam requestParam) Lists all collectionslistCredUsers(ListCredUsersParam requestParam) List all user names.List databases.listResourceGroups(ListResourceGroupsParam requestParam) List resource groups.loadBalance(LoadBalanceParam requestParam) Moves segment from a query node to another to keep the load balanced.loadCollection(LoadCollectionParam requestParam) Loads a collection to memory before search or query.loadPartitions(LoadPartitionsParam requestParam) Loads a partition into memory.manualCompact(ManualCompactParam requestParam) Performs a manual compaction.query(QueryParam requestParam) Queries entity(s) based on scalar field(s) filtered by boolean expression.query(QuerySimpleParam requestParam) Queries entity(s) based on scalar field(s) filtered by boolean expression.com.google.common.util.concurrent.ListenableFuture<R<QueryResults>> queryAsync(QueryParam requestParam) Queries entity(s) asynchronously based on scalar field(s) filtered by boolean expression.queryIterator(QueryIteratorParam requestParam) Get queryIterator based on scalar field(s) filtered by boolean expression.releaseCollection(ReleaseCollectionParam requestParam) Releases a collection from memory to reduce memory usage.releasePartitions(ReleasePartitionsParam requestParam) Releases a partition from memory.removeUserFromRole(RemoveUserFromRoleParam requestParam) The user will remove permissions that the role are allowed to perform operations.renameCollection(RenameCollectionParam requestParam) rename a collectionrevokeRolePrivilege(RevokeRolePrivilegeParam requestParam) Revoke Role Privilege.search(SearchParam requestParam) Conducts ANN search on a vector field.search(SearchSimpleParam requestParam) Conducts ANN search on a vector field.com.google.common.util.concurrent.ListenableFuture<R<SearchResults>> searchAsync(SearchParam requestParam) Conducts ANN search on a vector field asynchronously.searchIterator(SearchIteratorParam requestParam) Get searchIterator based on a vector field.selectGrantForRole(SelectGrantForRoleParam requestParam) List a grant info for the role and the specific objectselectGrantForRoleAndObject(SelectGrantForRoleAndObjectParam requestParam) List a grant info for the roleselectRole(SelectRoleParam requestParam) Get all users who are added to the role.selectUser(SelectUserParam requestParam) Get all roles the user has.voidsetLogLevel(LogLevel level) Set log level in runtime.showCollections(ShowCollectionsParam requestParam) Lists all collections or gets collection loading status.showPartitions(ShowPartitionsParam requestParam) Shows all partitions in the specified collection.transferNode(TransferNodeParam requestParam) Transfer a query node from source resource group to target resource_group.transferReplica(TransferReplicaParam requestParam) Transfer a replica from source resource group to target resource_group.updateCredential(UpdateCredentialParam requestParam) Update credential using the given user and password.updateResourceGroups(UpdateResourceGroupsParam requestParam) Update resource groups.upsert(UpsertParam requestParam) Insert new entities into a specified collection, replace them if the entities already exist.com.google.common.util.concurrent.ListenableFuture<R<MutationResult>> upsertAsync(UpsertParam requestParam) Insert new entities into a specified collection asynchronously, replace them if the entities already exist.withRetry(int retryTimes) Number of retry attempts.withRetry(RetryParam retryParam) Sets the parameters for retry.withRetryInterval(long interval, TimeUnit timeUnit) Time interval between retry attempts.withTimeout(long timeout, TimeUnit timeoutUnit) Timeout setting for rpc call.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.milvus.client.MilvusClient
close
-
Constructor Details
-
MilvusMultiServiceClient
Sets connect param for multi milvus clusters.- Parameters:
multiConnectParam- multi server connect param
-
-
Method Details
-
withTimeout
Description copied from interface:MilvusClientTimeout setting for rpc call.- Specified by:
withTimeoutin interfaceMilvusClient- Parameters:
timeout- set time waiting for a rpc call.timeoutUnit- time unit- Returns:
MilvusClient
-
withRetry
Description copied from interface:MilvusClientSets the parameters for retry.- Specified by:
withRetryin interfaceMilvusClient- Parameters:
retryParam-RetryParam- Returns:
MilvusClient
-
withRetry
Description copied from interface:MilvusClientNumber of retry attempts.- Specified by:
withRetryin interfaceMilvusClient- Parameters:
retryTimes- number of retry attempts.- Returns:
MilvusClient
-
withRetryInterval
Description copied from interface:MilvusClientTime interval between retry attempts. Default value is 500ms.- Specified by:
withRetryIntervalin interfaceMilvusClient- Parameters:
interval- time interval between retry attempts.timeUnit- time unit- Returns:
MilvusClient
-
close
Description copied from interface:MilvusClientDisconnects from a Milvus server with configurable timeout.- Specified by:
closein interfaceMilvusClient- Parameters:
maxWaitSeconds- timeout unit: second- Throws:
InterruptedException- throw InterruptedException if the client failed to close connection
-
setLogLevel
Description copied from interface:MilvusClientSet log level in runtime.- Specified by:
setLogLevelin interfaceMilvusClient- Parameters:
level-LogLevel
-
hasCollection
Description copied from interface:MilvusClientChecks if a collection exists.- Specified by:
hasCollectionin interfaceMilvusClient- Parameters:
requestParam-HasCollectionParam- Returns:
- {status:result code, data: boolean, whether if has collection or not}
-
createDatabase
Description copied from interface:MilvusClientCreates a database in Milvus.- Specified by:
createDatabasein interfaceMilvusClient- Parameters:
requestParam-CreateDatabaseParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
dropDatabase
Description copied from interface:MilvusClientDrops a database. Note that this method drops all data in the database.- Specified by:
dropDatabasein interfaceMilvusClient- Parameters:
requestParam-DropDatabaseParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
listDatabases
Description copied from interface:MilvusClientList databases. Note that this method list all database in the cluster.- Specified by:
listDatabasesin interfaceMilvusClient- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
alterDatabase
Description copied from interface:MilvusClientAlter database with key value pair. (Available from Milvus v2.4.4)- Specified by:
alterDatabasein interfaceMilvusClient- Parameters:
requestParam-AlterDatabaseParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
describeDatabase
Description copied from interface:MilvusClientShow detail of database base, such as replica number and resource groups. (Available from Milvus v2.4.4)- Specified by:
describeDatabasein interfaceMilvusClient- Parameters:
requestParam-DescribeDatabaseParam- Returns:
- {status:result code, data:DescribeDatabaseResponse{replica_number,resource_groups}}
-
createCollection
Description copied from interface:MilvusClientCreates a collection in Milvus.- Specified by:
createCollectionin interfaceMilvusClient- Parameters:
requestParam-CreateCollectionParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
dropCollection
Description copied from interface:MilvusClientDrops a collection. Note that this method drops all data in the collection.- Specified by:
dropCollectionin interfaceMilvusClient- Parameters:
requestParam-DropCollectionParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
loadCollection
Description copied from interface:MilvusClientLoads a collection to memory before search or query.- Specified by:
loadCollectionin interfaceMilvusClient- Parameters:
requestParam-LoadCollectionParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
releaseCollection
Description copied from interface:MilvusClientReleases a collection from memory to reduce memory usage. Note that you cannot search while the corresponding collection is released from memory.- Specified by:
releaseCollectionin interfaceMilvusClient- Parameters:
requestParam-ReleaseCollectionParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
renameCollection
Description copied from interface:MilvusClientrename a collection- Specified by:
renameCollectionin interfaceMilvusClient- Parameters:
requestParam-RenameCollectionParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
describeCollection
Description copied from interface:MilvusClientShows the details of a collection, e.g. name, schema.- Specified by:
describeCollectionin interfaceMilvusClient- Parameters:
requestParam-DescribeCollectionParam- Returns:
- {status:result code, data:DescribeCollectionResponse{schema,collectionID}}
-
getCollectionStatistics
public R<GetCollectionStatisticsResponse> getCollectionStatistics(GetCollectionStatisticsParam requestParam) Description copied from interface:MilvusClientShows the statistics information of a collection.- Specified by:
getCollectionStatisticsin interfaceMilvusClient- Parameters:
requestParam-GetCollectionStatisticsParam- Returns:
- {status:result code, data: GetCollectionStatisticsResponse{status,stats}}
-
showCollections
Description copied from interface:MilvusClientLists all collections or gets collection loading status.- Specified by:
showCollectionsin interfaceMilvusClient- Parameters:
requestParam-ShowCollectionsParam- Returns:
- {status:result code, data: ShowCollectionsResponse{status,collection_names,collection_ids,created_timestamps,created_utc_timestamps}}
-
alterCollection
Description copied from interface:MilvusClientAlter collection with key-value properties.- Specified by:
alterCollectionin interfaceMilvusClient- Parameters:
requestParam-AlterCollectionParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
flush
Description copied from interface:MilvusClientFlushes inserted data in buffer into storage.- Specified by:
flushin interfaceMilvusClient- Parameters:
requestParam-FlushParam- Returns:
- {status:result code,data: FlushResponse{flush segment ids}}
-
flushAll
public R<FlushAllResponse> flushAll(boolean syncFlushAll, long syncFlushAllWaitingInterval, long syncFlushAllTimeout) Description copied from interface:MilvusClientFlush all collections. All insertions, deletions, and upserts before `flushAll` will be synced.- Specified by:
flushAllin interfaceMilvusClient- Parameters:
syncFlushAll- {flushAll synchronously or asynchronously}syncFlushAllWaitingInterval- {wait intervel when flushAll synchronously}syncFlushAllTimeout- {timeout when flushAll synchronously}- Returns:
- {status:result code,data: FlushAllResponse{flushAllTs}}
-
createPartition
Description copied from interface:MilvusClientCreates a partition in the specified collection.- Specified by:
createPartitionin interfaceMilvusClient- Parameters:
requestParam-CreatePartitionParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
dropPartition
Description copied from interface:MilvusClientDrops a partition. Note that this method drops all data in this partition and the _default partition cannot be dropped.- Specified by:
dropPartitionin interfaceMilvusClient- Parameters:
requestParam-DropPartitionParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
hasPartition
Description copied from interface:MilvusClientChecks if a partition exists in the specified collection.- Specified by:
hasPartitionin interfaceMilvusClient- Parameters:
requestParam-HasPartitionParam- Returns:
- {status:result code, data: boolean, whether if has collection or not}
-
loadPartitions
Description copied from interface:MilvusClientLoads a partition into memory.- Specified by:
loadPartitionsin interfaceMilvusClient- Parameters:
requestParam-LoadPartitionsParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
releasePartitions
Description copied from interface:MilvusClientReleases a partition from memory.- Specified by:
releasePartitionsin interfaceMilvusClient- Parameters:
requestParam-ReleasePartitionsParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
getPartitionStatistics
public R<GetPartitionStatisticsResponse> getPartitionStatistics(GetPartitionStatisticsParam requestParam) Description copied from interface:MilvusClientShows the statistics information of a partition.- Specified by:
getPartitionStatisticsin interfaceMilvusClient- Parameters:
requestParam-GetPartitionStatisticsParam- Returns:
- {status:result code,data:GetPartitionStatisticsResponse{status,stats}}
-
showPartitions
Description copied from interface:MilvusClientShows all partitions in the specified collection.- Specified by:
showPartitionsin interfaceMilvusClient- Parameters:
requestParam-ShowPartitionsParam- Returns:
- {status:result code, data:ShowPartitionsResponse{partition_names,partitionIDs,created_timestamps,created_utc_timestamps}}
-
createAlias
Description copied from interface:MilvusClientCreates an alias for a collection. Alias can be used in search or query to replace the collection name- Specified by:
createAliasin interfaceMilvusClient- Parameters:
requestParam-CreateAliasParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
dropAlias
Description copied from interface:MilvusClientDrops an alias for the specified collection.- Specified by:
dropAliasin interfaceMilvusClient- Parameters:
requestParam-DropAliasParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
alterAlias
Description copied from interface:MilvusClientAlters alias from a collection to another.- Specified by:
alterAliasin interfaceMilvusClient- Parameters:
requestParam-AlterAliasParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
listAliases
Description copied from interface:MilvusClientList all alias for a collection.- Specified by:
listAliasesin interfaceMilvusClient- Parameters:
requestParam-ListAliasesParam- Returns:
- {status:result code, data:ListAliasesResponse{status, aliases}}
-
createIndex
Description copied from interface:MilvusClientCreates an index on a vector field in the specified collection. Note that index building is an async progress.- Specified by:
createIndexin interfaceMilvusClient- Parameters:
requestParam-CreateIndexParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
dropIndex
Description copied from interface:MilvusClientDrops the index on a vector field in the specified collection.- Specified by:
dropIndexin interfaceMilvusClient- Parameters:
requestParam-DropIndexParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
describeIndex
Description copied from interface:MilvusClientShows the information of the specified index. Current release of Milvus only supports showing latest built index.- Specified by:
describeIndexin interfaceMilvusClient- Parameters:
requestParam-DescribeIndexParam- Returns:
- {status:result code, data:DescribeIndexResponse{status,index_descriptions}}
-
getIndexState
Description copied from interface:MilvusClientShows the index building state(in-progress/finished/failed), and the reason for failure (if any).- Specified by:
getIndexStatein interfaceMilvusClient- Parameters:
requestParam-GetIndexStateParam- Returns:
- {status:result code, data:GetIndexStateResponse{status,state}}
-
getIndexBuildProgress
public R<GetIndexBuildProgressResponse> getIndexBuildProgress(GetIndexBuildProgressParam requestParam) Description copied from interface:MilvusClientShows the index building progress, such as how many rows are indexed.- Specified by:
getIndexBuildProgressin interfaceMilvusClient- Parameters:
requestParam-GetIndexBuildProgressParam- Returns:
- {status:result code, data:GetIndexBuildProgressResponse{status,indexed_rows}}
-
alterIndex
Description copied from interface:MilvusClientAlter index with key value properties.- Specified by:
alterIndexin interfaceMilvusClient- Parameters:
requestParam-AlterIndexParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
insert
Description copied from interface:MilvusClientInserts entities into a specified collection . Note that you don't need to input primary key field if auto_id is enabled.- Specified by:
insertin interfaceMilvusClient- Parameters:
requestParam-InsertParam- Returns:
- {status:result code, data: MutationResult{insert results}}
-
insertAsync
public com.google.common.util.concurrent.ListenableFuture<R<MutationResult>> insertAsync(InsertParam requestParam) Description copied from interface:MilvusClientInserts entities into a specified collection asynchronously. Note that you don't need to input primary key field if auto_id is enabled.- Specified by:
insertAsyncin interfaceMilvusClient- Parameters:
requestParam-InsertParam- Returns:
- a
ListenableFutureobject which holds the object {status:result code, data: MutationResult{insert results}}
-
upsert
Description copied from interface:MilvusClientInsert new entities into a specified collection, replace them if the entities already exist.- Specified by:
upsertin interfaceMilvusClient- Parameters:
requestParam-UpsertParam- Returns:
- {status:result code, data: MutationResult{insert results}}
-
upsertAsync
public com.google.common.util.concurrent.ListenableFuture<R<MutationResult>> upsertAsync(UpsertParam requestParam) Description copied from interface:MilvusClientInsert new entities into a specified collection asynchronously, replace them if the entities already exist.- Specified by:
upsertAsyncin interfaceMilvusClient- Parameters:
requestParam-UpsertParam- Returns:
- a
ListenableFutureobject which holds the object {status:result code, data: MutationResult{insert results}}
-
delete
Description copied from interface:MilvusClientDeletes entity(s) based on primary key(s) filtered by boolean expression. Current release of Milvus only supports expression in the format "pk_field in [1, 2, ...]"- Specified by:
deletein interfaceMilvusClient- Parameters:
requestParam-DeleteParam- Returns:
- {status:result code, data: MutationResult{delete results}}
-
search
Description copied from interface:MilvusClientConducts ANN search on a vector field. Use expression to do filtering before search.- Specified by:
searchin interfaceMilvusClient- Parameters:
requestParam-SearchParam- Returns:
- {status:result code, data: SearchResults{topK results}}
-
searchAsync
public com.google.common.util.concurrent.ListenableFuture<R<SearchResults>> searchAsync(SearchParam requestParam) Description copied from interface:MilvusClientConducts ANN search on a vector field asynchronously. Use expression to do filtering before search.- Specified by:
searchAsyncin interfaceMilvusClient- Parameters:
requestParam-SearchParam- Returns:
- a
ListenableFutureobject which holds the object {status:result code, data: SearchResults{topK results}}
-
hybridSearch
Description copied from interface:MilvusClientConducts multi vector similarity search with a ranker for rearrangement.- Specified by:
hybridSearchin interfaceMilvusClient- Parameters:
requestParam-HybridSearchParam- Returns:
- {status:result code, data: SearchResults{topK results}}
-
hybridSearchAsync
public com.google.common.util.concurrent.ListenableFuture<R<SearchResults>> hybridSearchAsync(HybridSearchParam requestParam) Description copied from interface:MilvusClientConducts multi vector similarity search asynchronously with a ranker for rearrangement.- Specified by:
hybridSearchAsyncin interfaceMilvusClient- Parameters:
requestParam-HybridSearchParam- Returns:
- a
ListenableFutureobject which holds the object {status:result code, data: SearchResults{topK results}}
-
query
Description copied from interface:MilvusClientQueries entity(s) based on scalar field(s) filtered by boolean expression. Note that the order of the returned entities cannot be guaranteed.- Specified by:
queryin interfaceMilvusClient- Parameters:
requestParam-QueryParam- Returns:
- {status:result code,data: QueryResults{filter results}}
-
queryAsync
public com.google.common.util.concurrent.ListenableFuture<R<QueryResults>> queryAsync(QueryParam requestParam) Description copied from interface:MilvusClientQueries entity(s) asynchronously based on scalar field(s) filtered by boolean expression. Note that the order of the returned entities cannot be guaranteed.- Specified by:
queryAsyncin interfaceMilvusClient- Parameters:
requestParam-QueryParam- Returns:
- {status:result code,data: QueryResults{filter results}}
-
getMetrics
Description copied from interface:MilvusClientGets the runtime metrics information of Milvus, returns the result in .json format.- Specified by:
getMetricsin interfaceMilvusClient- Parameters:
requestParam-GetMetricsParam- Returns:
- {status:result code, data:GetMetricsResponse{status,metrics}}
-
getFlushState
Description copied from interface:MilvusClientGet flush state of specified collection.- Specified by:
getFlushStatein interfaceMilvusClient- Parameters:
requestParam-GetFlushStateParam- Returns:
- {status:result code, data:GetMetricsResponse{status,metrics}}
-
getFlushAllState
Description copied from interface:MilvusClientGet flush state of all segments.- Specified by:
getFlushAllStatein interfaceMilvusClient- Parameters:
requestParam-GetFlushAllStateParam- Returns:
- {status:result code, data:GetMetricsResponse{status,metrics}}
-
getPersistentSegmentInfo
public R<GetPersistentSegmentInfoResponse> getPersistentSegmentInfo(GetPersistentSegmentInfoParam requestParam) Description copied from interface:MilvusClientGets the information of persistent segments from data node, including row count, persistence state(growing or flushed), etc.- Specified by:
getPersistentSegmentInfoin interfaceMilvusClient- Parameters:
requestParam-GetPersistentSegmentInfoParam- Returns:
- {status:result code, data:GetPersistentSegmentInfoResponse{status,info}}
-
getQuerySegmentInfo
Description copied from interface:MilvusClientGets the query information of segments in a collection from query node, including row count, memory usage size, index name, etc.- Specified by:
getQuerySegmentInfoin interfaceMilvusClient- Parameters:
requestParam-GetQuerySegmentInfoParam- Returns:
- {status:result code, data:GetQuerySegmentInfoResponse{status,info}}
-
getReplicas
Description copied from interface:MilvusClientReturns the collection's replica information- Specified by:
getReplicasin interfaceMilvusClient- Parameters:
requestParam-GetReplicasParam- Returns:
- {status:result code, data:GetReplicasResponse{status,info}}
-
loadBalance
Description copied from interface:MilvusClientMoves segment from a query node to another to keep the load balanced.- Specified by:
loadBalancein interfaceMilvusClient- Parameters:
requestParam-LoadBalanceParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
getCompactionState
Description copied from interface:MilvusClientGets the compaction state by id.- Specified by:
getCompactionStatein interfaceMilvusClient- Parameters:
requestParam-GetCompactionStateParam- Returns:
- {status:result code, data:GetCompactionStateResponse{status,info}}
-
manualCompact
Description copied from interface:MilvusClientPerforms a manual compaction.- Specified by:
manualCompactin interfaceMilvusClient- Parameters:
requestParam-ManualCompactParam- Returns:
- {status:result code, data:ManualCompactionResponse{status,info}}
-
getCompactionStateWithPlans
public R<GetCompactionPlansResponse> getCompactionStateWithPlans(GetCompactionPlansParam requestParam) Description copied from interface:MilvusClientGets compaction state with its plan.- Specified by:
getCompactionStateWithPlansin interfaceMilvusClient- Parameters:
requestParam-GetCompactionPlansParam- Returns:
- {status:result code, data:GetCompactionPlansResponse{status,info}}
-
createCredential
Description copied from interface:MilvusClientCreate credential using the given user and password.- Specified by:
createCredentialin interfaceMilvusClient- Parameters:
requestParam-CreateCredentialParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
updateCredential
Description copied from interface:MilvusClientUpdate credential using the given user and password. You must provide the original password to check if the operation is valid. Note: after this operation, client won't change the related header of this connection. So if you update credential for this connection, the connection may be invalid.- Specified by:
updateCredentialin interfaceMilvusClient- Parameters:
requestParam-UpdateCredentialParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
deleteCredential
Description copied from interface:MilvusClientDelete credential corresponding to the user.- Specified by:
deleteCredentialin interfaceMilvusClient- Parameters:
requestParam-DeleteCredentialParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
listCredUsers
Description copied from interface:MilvusClientList all user names.- Specified by:
listCredUsersin interfaceMilvusClient- Parameters:
requestParam-ListCredUsersParam- Returns:
- {status:result code, data:ListCredUsersResponse{status,info}}
-
createRole
Description copied from interface:MilvusClientIt will success if the role isn't existed, otherwise fail.- Specified by:
createRolein interfaceMilvusClient- Parameters:
requestParam-CreateRoleParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
dropRole
Description copied from interface:MilvusClientIt will success if the role is existed, otherwise fail.- Specified by:
dropRolein interfaceMilvusClient- Parameters:
requestParam-DropRoleParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
addUserToRole
Description copied from interface:MilvusClientThe user will get permissions that the role are allowed to perform operations.- Specified by:
addUserToRolein interfaceMilvusClient- Parameters:
requestParam-AddUserToRoleParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
removeUserFromRole
Description copied from interface:MilvusClientThe user will remove permissions that the role are allowed to perform operations.- Specified by:
removeUserFromRolein interfaceMilvusClient- Parameters:
requestParam-AddUserToRoleParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
selectRole
Description copied from interface:MilvusClientGet all users who are added to the role.- Specified by:
selectRolein interfaceMilvusClient- Parameters:
requestParam-SelectRoleParam- Returns:
- {status:result code, data:SelectRoleResponse{status,info}}
-
selectUser
Description copied from interface:MilvusClientGet all roles the user has.- Specified by:
selectUserin interfaceMilvusClient- Parameters:
requestParam-SelectUserParam- Returns:
- {status:result code, data:SelectUserResponse{status,info}}
-
grantRolePrivilege
Description copied from interface:MilvusClientGrant Role Privilege.- Specified by:
grantRolePrivilegein interfaceMilvusClient- Parameters:
requestParam-GrantRolePrivilegeParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
revokeRolePrivilege
Description copied from interface:MilvusClientRevoke Role Privilege.- Specified by:
revokeRolePrivilegein interfaceMilvusClient- Parameters:
requestParam-RevokeRolePrivilegeParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
selectGrantForRole
Description copied from interface:MilvusClientList a grant info for the role and the specific object- Specified by:
selectGrantForRolein interfaceMilvusClient- Parameters:
requestParam-SelectGrantForRoleParam- Returns:
- {status:result code, data:SelectRoleResponse{status,info}}
-
selectGrantForRoleAndObject
public R<SelectGrantResponse> selectGrantForRoleAndObject(SelectGrantForRoleAndObjectParam requestParam) Description copied from interface:MilvusClientList a grant info for the role- Specified by:
selectGrantForRoleAndObjectin interfaceMilvusClient- Parameters:
requestParam-SelectGrantForRoleAndObjectParam- Returns:
- {status:result code, data:SelectRoleResponse{status,info}}
-
bulkInsert
Description copied from interface:MilvusClientImport data from external files, currently support JSON format- Specified by:
bulkInsertin interfaceMilvusClient- Parameters:
requestParam-BulkInsertParam- Returns:
- {status:result code, data:ImportResponse{status,info}}
-
getBulkInsertState
Description copied from interface:MilvusClientGet state of bulk insert task- Specified by:
getBulkInsertStatein interfaceMilvusClient- Parameters:
requestParam-GetBulkInsertStateParam- Returns:
- {status:result code, data:GetImportStateResponse{status,info}}
-
listBulkInsertTasks
Description copied from interface:MilvusClientList bulk insert tasks- Specified by:
listBulkInsertTasksin interfaceMilvusClient- Parameters:
requestParam-ListBulkInsertTasksParam- Returns:
- {status:result code, data:ListImportTasksResponse{status,info}}
-
checkHealth
Description copied from interface:MilvusClientCheck server health- Specified by:
checkHealthin interfaceMilvusClient- Returns:
- {status:result code, data:CheckHealthResponse{status,info}}
-
getVersion
Description copied from interface:MilvusClientGet server version- Specified by:
getVersionin interfaceMilvusClient- Returns:
- {status:result code, data:GetVersionResponse{status,info}}
-
getLoadingProgress
Description copied from interface:MilvusClientGet collection loading progress- Specified by:
getLoadingProgressin interfaceMilvusClient- Parameters:
requestParam-GetLoadingProgressParam- Returns:
- {status:result code, data:GetLoadingProgressResponse{status}}
-
getLoadState
Description copied from interface:MilvusClientGet collection loading state- Specified by:
getLoadStatein interfaceMilvusClient- Parameters:
requestParam-GetLoadStateParam- Returns:
- {status:result code, data:GetLoadStateResponse{status}}
-
createResourceGroup
Description copied from interface:MilvusClientCreate a resource group.- Specified by:
createResourceGroupin interfaceMilvusClient- Parameters:
requestParam-CreateResourceGroupParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
updateResourceGroups
Description copied from interface:MilvusClientUpdate resource groups.- Specified by:
updateResourceGroupsin interfaceMilvusClient- Parameters:
requestParam-UpdateResourceGroupsParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
dropResourceGroup
Description copied from interface:MilvusClientDrop a resource group.- Specified by:
dropResourceGroupin interfaceMilvusClient- Parameters:
requestParam-DropResourceGroupParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
listResourceGroups
Description copied from interface:MilvusClientList resource groups.- Specified by:
listResourceGroupsin interfaceMilvusClient- Parameters:
requestParam-ListResourceGroupsParam- Returns:
- {status:result code, data:ListResourceGroupsResponse{status}}
-
describeResourceGroup
public R<DescribeResourceGroupResponse> describeResourceGroup(DescribeResourceGroupParam requestParam) Description copied from interface:MilvusClientDescribe a resource group.- Specified by:
describeResourceGroupin interfaceMilvusClient- Parameters:
requestParam-DescribeResourceGroupParam- Returns:
- {status:result code, data:DescribeResourceGroupResponse{status}}
-
transferNode
Description copied from interface:MilvusClientTransfer a query node from source resource group to target resource_group.- Specified by:
transferNodein interfaceMilvusClient- Parameters:
requestParam-TransferNodeParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
transferReplica
Description copied from interface:MilvusClientTransfer a replica from source resource group to target resource_group.- Specified by:
transferReplicain interfaceMilvusClient- Parameters:
requestParam-TransferReplicaParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
createCollection
Description copied from interface:MilvusClientCreates a collection in Milvus.- Specified by:
createCollectionin interfaceMilvusClient- Parameters:
requestParam-CreateSimpleCollectionParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
listCollections
Description copied from interface:MilvusClientLists all collections- Specified by:
listCollectionsin interfaceMilvusClient- Parameters:
requestParam-ListCollectionsParam- Returns:
- {status:result code, data: ListCollectionsResponse{collection_names}}
-
insert
Description copied from interface:MilvusClientInserts rows data into a specified collection . Note that you don't need to input primary key field if auto_id is enabled.- Specified by:
insertin interfaceMilvusClient- Parameters:
requestParam-InsertRowsParam- Returns:
- {status:result code, data: MutationResult{insert results}}
-
delete
Description copied from interface:MilvusClientDeletes entity(s) based on the value of primary key.- Specified by:
deletein interfaceMilvusClient- Parameters:
requestParam-DeleteIdsParam- Returns:
- {status:result code, data: MutationResult{delete results}}
-
get
Description copied from interface:MilvusClientGet entity(s) based on the value of primary key.- Specified by:
getin interfaceMilvusClient- Parameters:
requestParam-GetIdsParam- Returns:
- {status:result code, data: QueryResults{query results}}
-
query
Description copied from interface:MilvusClientQueries entity(s) based on scalar field(s) filtered by boolean expression. Note that the order of the returned entities cannot be guaranteed.- Specified by:
queryin interfaceMilvusClient- Parameters:
requestParam-QuerySimpleParam- Returns:
- {status:result code,data: QueryResults{filter results}}
-
search
Description copied from interface:MilvusClientConducts ANN search on a vector field. Use expression to do filtering before search.- Specified by:
searchin interfaceMilvusClient- Parameters:
requestParam-SearchSimpleParam- Returns:
- {status:result code, data: SearchResults{topK results}}
-
queryIterator
Description copied from interface:MilvusClientGet queryIterator based on scalar field(s) filtered by boolean expression. Note that the order of the returned entities cannot be guaranteed.- Specified by:
queryIteratorin interfaceMilvusClient- Parameters:
requestParam-QueryIteratorParam- Returns:
- {status:result code,data: QueryIterator}
-
searchIterator
Description copied from interface:MilvusClientGet searchIterator based on a vector field. Use expression to do filtering before search.- Specified by:
searchIteratorin interfaceMilvusClient- Parameters:
requestParam-SearchIteratorParam- Returns:
- {status:result code, data: SearchIterator}
-