Package io.milvus.client
Class MilvusServiceClient
java.lang.Object
io.milvus.client.AbstractMilvusGrpcClient
io.milvus.client.MilvusServiceClient
- All Implemented Interfaces:
MilvusClient
-
Field Summary
Fields inherited from class io.milvus.client.AbstractMilvusGrpcClient
logger, logLevel -
Constructor Summary
Constructors -
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.bulkInsert(BulkInsertParam requestParam) Import data from external files, currently support JSON formatCheck server healthbooleanvoidclose(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) Flush insert 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(@NonNull GetIndexBuildProgressParam requestParam) Shows the index building progress, such as how many rows are indexed.getIndexState(@NonNull 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.insert(InsertParam requestParam) Inserts entities into a specified collection .insert(InsertRowsParam requestParam) Inserts rows data into a specified collection .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.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.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.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 io.milvus.client.AbstractMilvusGrpcClient
alterIndex, hybridSearchAsync, insertAsync, logDebug, logError, logInfo, logWarning, queryAsync, searchAsync, upsertAsyncMethods 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
-
MilvusServiceClient
-
MilvusServiceClient
-
-
Method Details
-
blockingStub
- Specified by:
blockingStubin classAbstractMilvusGrpcClient
-
futureStub
- Specified by:
futureStubin classAbstractMilvusGrpcClient
-
clientIsReady
public boolean clientIsReady()- Specified by:
clientIsReadyin classAbstractMilvusGrpcClient
-
close
Description copied from interface:MilvusClientDisconnects from a Milvus server with configurable timeout.- Parameters:
maxWaitSeconds- timeout unit: second- Throws:
InterruptedException- throw InterruptedException if the client failed to close connection
-
withTimeout
Description copied from interface:MilvusClientTimeout setting for rpc call.- Parameters:
timeout- set time waiting for a rpc call.timeoutUnit- time unit- Returns:
MilvusClient
-
withRetry
Description copied from interface:MilvusClientSets the parameters for retry.- Parameters:
retryParam-RetryParam- Returns:
MilvusClient
-
withRetry
Description copied from interface:MilvusClientNumber of retry attempts.- Parameters:
retryTimes- number of retry attempts.- Returns:
MilvusClient
-
withRetryInterval
Description copied from interface:MilvusClientTime interval between retry attempts. Default value is 500ms.- Parameters:
interval- time interval between retry attempts.timeUnit- time unit- Returns:
MilvusClient
-
setLogLevel
Description copied from interface:MilvusClientSet log level in runtime.- Parameters:
level-LogLevel
-
hasCollection
Description copied from interface:MilvusClientChecks if a collection exists.- Specified by:
hasCollectionin interfaceMilvusClient- Overrides:
hasCollectionin classAbstractMilvusGrpcClient- 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- Overrides:
createDatabasein classAbstractMilvusGrpcClient- 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- Overrides:
dropDatabasein classAbstractMilvusGrpcClient- 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- Overrides:
listDatabasesin classAbstractMilvusGrpcClient- 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- Overrides:
alterDatabasein classAbstractMilvusGrpcClient- 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- Overrides:
describeDatabasein classAbstractMilvusGrpcClient- 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- Overrides:
createCollectionin classAbstractMilvusGrpcClient- 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- Overrides:
dropCollectionin classAbstractMilvusGrpcClient- 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- Overrides:
loadCollectionin classAbstractMilvusGrpcClient- 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- Overrides:
releaseCollectionin classAbstractMilvusGrpcClient- Parameters:
requestParam-ReleaseCollectionParam- 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- Overrides:
describeCollectionin classAbstractMilvusGrpcClient- 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- Overrides:
getCollectionStatisticsin classAbstractMilvusGrpcClient- Parameters:
requestParam-GetCollectionStatisticsParam- Returns:
- {status:result code, data: GetCollectionStatisticsResponse{status,stats}}
-
renameCollection
Description copied from interface:MilvusClientrename a collection- Specified by:
renameCollectionin interfaceMilvusClient- Overrides:
renameCollectionin classAbstractMilvusGrpcClient- Parameters:
requestParam-RenameCollectionParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
showCollections
Description copied from interface:MilvusClientLists all collections or gets collection loading status.- Specified by:
showCollectionsin interfaceMilvusClient- Overrides:
showCollectionsin classAbstractMilvusGrpcClient- 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- Overrides:
alterCollectionin classAbstractMilvusGrpcClient- Parameters:
requestParam-AlterCollectionParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
flush
Description copied from class:AbstractMilvusGrpcClientFlush insert buffer into storage. To make sure the buffer persisted successfully, it calls GetFlushState() to check related segments state.- Specified by:
flushin interfaceMilvusClient- Overrides:
flushin classAbstractMilvusGrpcClient- 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 class:AbstractMilvusGrpcClientFlush all collections. All insertions, deletions, and upserts before `flushAll` will be synced.- Specified by:
flushAllin interfaceMilvusClient- Overrides:
flushAllin classAbstractMilvusGrpcClient- 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- Overrides:
createPartitionin classAbstractMilvusGrpcClient- 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- Overrides:
dropPartitionin classAbstractMilvusGrpcClient- 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- Overrides:
hasPartitionin classAbstractMilvusGrpcClient- 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- Overrides:
loadPartitionsin classAbstractMilvusGrpcClient- 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- Overrides:
releasePartitionsin classAbstractMilvusGrpcClient- 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- Overrides:
getPartitionStatisticsin classAbstractMilvusGrpcClient- 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- Overrides:
showPartitionsin classAbstractMilvusGrpcClient- 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- Overrides:
createAliasin classAbstractMilvusGrpcClient- 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- Overrides:
dropAliasin classAbstractMilvusGrpcClient- 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- Overrides:
alterAliasin classAbstractMilvusGrpcClient- 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- Overrides:
listAliasesin classAbstractMilvusGrpcClient- 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- Overrides:
createIndexin classAbstractMilvusGrpcClient- 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- Overrides:
dropIndexin classAbstractMilvusGrpcClient- 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- Overrides:
describeIndexin classAbstractMilvusGrpcClient- 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- Overrides:
getIndexStatein classAbstractMilvusGrpcClient- Parameters:
requestParam-GetIndexStateParam- Returns:
- {status:result code, data:GetIndexStateResponse{status,state}}
-
getIndexBuildProgress
public R<GetIndexBuildProgressResponse> getIndexBuildProgress(@NonNull @NonNull GetIndexBuildProgressParam requestParam) Description copied from interface:MilvusClientShows the index building progress, such as how many rows are indexed.- Specified by:
getIndexBuildProgressin interfaceMilvusClient- Overrides:
getIndexBuildProgressin classAbstractMilvusGrpcClient- Parameters:
requestParam-GetIndexBuildProgressParam- Returns:
- {status:result code, data:GetIndexBuildProgressResponse{status,indexed_rows}}
-
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- Overrides:
insertin classAbstractMilvusGrpcClient- Parameters:
requestParam-InsertParam- Returns:
- {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- Overrides:
upsertin classAbstractMilvusGrpcClient- Parameters:
requestParam-UpsertParam- Returns:
- {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- Overrides:
deletein classAbstractMilvusGrpcClient- 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- Overrides:
searchin classAbstractMilvusGrpcClient- Parameters:
requestParam-SearchParam- Returns:
- {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- Overrides:
hybridSearchin classAbstractMilvusGrpcClient- Parameters:
requestParam-HybridSearchParam- Returns:
- {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- Overrides:
queryin classAbstractMilvusGrpcClient- 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- Overrides:
getMetricsin classAbstractMilvusGrpcClient- 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- Overrides:
getFlushStatein classAbstractMilvusGrpcClient- 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- Overrides:
getFlushAllStatein classAbstractMilvusGrpcClient- 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- Overrides:
getPersistentSegmentInfoin classAbstractMilvusGrpcClient- 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- Overrides:
getQuerySegmentInfoin classAbstractMilvusGrpcClient- 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- Overrides:
getReplicasin classAbstractMilvusGrpcClient- 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- Overrides:
loadBalancein classAbstractMilvusGrpcClient- 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- Overrides:
getCompactionStatein classAbstractMilvusGrpcClient- Parameters:
requestParam-GetCompactionStateParam- Returns:
- {status:result code, data:GetCompactionStateResponse{status,info}}
-
manualCompact
Description copied from interface:MilvusClientPerforms a manual compaction.- Specified by:
manualCompactin interfaceMilvusClient- Overrides:
manualCompactin classAbstractMilvusGrpcClient- 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- Overrides:
getCompactionStateWithPlansin classAbstractMilvusGrpcClient- 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- Overrides:
createCredentialin classAbstractMilvusGrpcClient- 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- Overrides:
updateCredentialin classAbstractMilvusGrpcClient- 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- Overrides:
deleteCredentialin classAbstractMilvusGrpcClient- 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- Overrides:
listCredUsersin classAbstractMilvusGrpcClient- 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- Overrides:
createRolein classAbstractMilvusGrpcClient- 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- Overrides:
dropRolein classAbstractMilvusGrpcClient- 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- Overrides:
addUserToRolein classAbstractMilvusGrpcClient- 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- Overrides:
removeUserFromRolein classAbstractMilvusGrpcClient- 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- Overrides:
selectRolein classAbstractMilvusGrpcClient- 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- Overrides:
selectUserin classAbstractMilvusGrpcClient- Parameters:
requestParam-SelectUserParam- Returns:
- {status:result code, data:SelectUserResponse{status,info}}
-
grantRolePrivilege
Description copied from interface:MilvusClientGrant Role Privilege.- Specified by:
grantRolePrivilegein interfaceMilvusClient- Overrides:
grantRolePrivilegein classAbstractMilvusGrpcClient- Parameters:
requestParam-GrantRolePrivilegeParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
revokeRolePrivilege
Description copied from interface:MilvusClientRevoke Role Privilege.- Specified by:
revokeRolePrivilegein interfaceMilvusClient- Overrides:
revokeRolePrivilegein classAbstractMilvusGrpcClient- 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- Overrides:
selectGrantForRolein classAbstractMilvusGrpcClient- 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- Overrides:
selectGrantForRoleAndObjectin classAbstractMilvusGrpcClient- 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- Overrides:
bulkInsertin classAbstractMilvusGrpcClient- 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- Overrides:
getBulkInsertStatein classAbstractMilvusGrpcClient- Parameters:
requestParam-GetBulkInsertStateParam- Returns:
- {status:result code, data:GetImportStateResponse{status,info}}
-
listBulkInsertTasks
Description copied from interface:MilvusClientList bulk insert tasks- Specified by:
listBulkInsertTasksin interfaceMilvusClient- Overrides:
listBulkInsertTasksin classAbstractMilvusGrpcClient- Parameters:
requestParam-ListBulkInsertTasksParam- Returns:
- {status:result code, data:ListImportTasksResponse{status,info}}
-
checkHealth
Description copied from interface:MilvusClientCheck server health- Specified by:
checkHealthin interfaceMilvusClient- Overrides:
checkHealthin classAbstractMilvusGrpcClient- Returns:
- {status:result code, data:CheckHealthResponse{status,info}}
-
getVersion
Description copied from interface:MilvusClientGet server version- Specified by:
getVersionin interfaceMilvusClient- Overrides:
getVersionin classAbstractMilvusGrpcClient- Returns:
- {status:result code, data:GetVersionResponse{status,info}}
-
getLoadingProgress
Description copied from interface:MilvusClientGet collection loading progress- Specified by:
getLoadingProgressin interfaceMilvusClient- Overrides:
getLoadingProgressin classAbstractMilvusGrpcClient- Parameters:
requestParam-GetLoadingProgressParam- Returns:
- {status:result code, data:GetLoadingProgressResponse{status}}
-
getLoadState
Description copied from interface:MilvusClientGet collection loading state- Specified by:
getLoadStatein interfaceMilvusClient- Overrides:
getLoadStatein classAbstractMilvusGrpcClient- Parameters:
requestParam-GetLoadStateParam- Returns:
- {status:result code, data:GetLoadStateResponse{status}}
-
createResourceGroup
Description copied from interface:MilvusClientCreate a resource group.- Specified by:
createResourceGroupin interfaceMilvusClient- Overrides:
createResourceGroupin classAbstractMilvusGrpcClient- Parameters:
requestParam-CreateResourceGroupParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
dropResourceGroup
Description copied from interface:MilvusClientDrop a resource group.- Specified by:
dropResourceGroupin interfaceMilvusClient- Overrides:
dropResourceGroupin classAbstractMilvusGrpcClient- Parameters:
requestParam-DropResourceGroupParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
listResourceGroups
Description copied from interface:MilvusClientList resource groups.- Specified by:
listResourceGroupsin interfaceMilvusClient- Overrides:
listResourceGroupsin classAbstractMilvusGrpcClient- 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- Overrides:
describeResourceGroupin classAbstractMilvusGrpcClient- 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- Overrides:
transferNodein classAbstractMilvusGrpcClient- 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- Overrides:
transferReplicain classAbstractMilvusGrpcClient- Parameters:
requestParam-TransferReplicaParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
updateResourceGroups
Description copied from interface:MilvusClientUpdate resource groups.- Specified by:
updateResourceGroupsin interfaceMilvusClient- Overrides:
updateResourceGroupsin classAbstractMilvusGrpcClient- Parameters:
requestParam-UpdateResourceGroupsParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
createCollection
Description copied from interface:MilvusClientCreates a collection in Milvus.- Specified by:
createCollectionin interfaceMilvusClient- Overrides:
createCollectionin classAbstractMilvusGrpcClient- Parameters:
requestParam-CreateSimpleCollectionParam- Returns:
- {status:result code, data:RpcStatus{msg: result message}}
-
listCollections
Description copied from interface:MilvusClientLists all collections- Specified by:
listCollectionsin interfaceMilvusClient- Overrides:
listCollectionsin classAbstractMilvusGrpcClient- 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- Overrides:
insertin classAbstractMilvusGrpcClient- 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- Overrides:
deletein classAbstractMilvusGrpcClient- 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- Overrides:
getin classAbstractMilvusGrpcClient- 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- Overrides:
queryin classAbstractMilvusGrpcClient- 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- Overrides:
searchin classAbstractMilvusGrpcClient- 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- Overrides:
queryIteratorin classAbstractMilvusGrpcClient- 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- Overrides:
searchIteratorin classAbstractMilvusGrpcClient- Parameters:
requestParam-SearchIteratorParam- Returns:
- {status:result code, data: SearchIterator}
-