|
@@ -42,6 +42,7 @@ import io.milvus.v2.service.index.request.*;
|
|
|
import io.milvus.v2.service.index.response.*;
|
|
|
import io.milvus.v2.service.partition.PartitionService;
|
|
|
import io.milvus.v2.service.partition.request.*;
|
|
|
+import io.milvus.v2.service.partition.response.*;
|
|
|
import io.milvus.v2.service.rbac.RBACService;
|
|
|
import io.milvus.v2.service.rbac.request.*;
|
|
|
import io.milvus.v2.service.rbac.response.*;
|
|
@@ -306,7 +307,7 @@ public class MilvusClientV2 {
|
|
|
}
|
|
|
/**
|
|
|
* Alter database with key value pair. (Available from Milvus v2.4.4)
|
|
|
- * Deprecated, replaced by alterDatabaseProperties from v2.5.2, to keep consistence with other SDKs
|
|
|
+ * Deprecated, replaced by alterDatabaseProperties from v2.5.3, to keep consistence with other SDKs
|
|
|
* @param request alter database request
|
|
|
*/
|
|
|
@Deprecated
|
|
@@ -317,14 +318,14 @@ public class MilvusClientV2 {
|
|
|
.build());
|
|
|
}
|
|
|
/**
|
|
|
- * Alter a database's properties (Available from Milvus v2.5.2)
|
|
|
+ * Alter a database's properties (Available from Milvus v2.5.3)
|
|
|
* @param request alter database properties request
|
|
|
*/
|
|
|
public void alterDatabaseProperties(AlterDatabasePropertiesReq request) {
|
|
|
retry(()-> databaseService.alterDatabaseProperties(this.getRpcStub(), request));
|
|
|
}
|
|
|
/**
|
|
|
- * drop a database's properties (Available from Milvus v2.5.2)
|
|
|
+ * drop a database's properties (Available from Milvus v2.5.3)
|
|
|
* @param request alter database properties request
|
|
|
*/
|
|
|
public void dropDatabaseProperties(DropDatabasePropertiesReq request) {
|
|
@@ -374,7 +375,7 @@ public class MilvusClientV2 {
|
|
|
}
|
|
|
/**
|
|
|
* Alter a collection in Milvus.
|
|
|
- * Deprecated, replaced by alterCollectionProperties from v2.5.2, to keep consistence with other SDKs
|
|
|
+ * Deprecated, replaced by alterCollectionProperties from v2.5.3, to keep consistence with other SDKs
|
|
|
*
|
|
|
* @param request alter collection request
|
|
|
*/
|
|
@@ -387,7 +388,7 @@ public class MilvusClientV2 {
|
|
|
.build());
|
|
|
}
|
|
|
/**
|
|
|
- * Alter a collection's properties (Available from Milvus v2.5.2).
|
|
|
+ * Alter a collection's properties (Available from Milvus v2.5.3).
|
|
|
*
|
|
|
* @param request alter collection properties request
|
|
|
*/
|
|
@@ -395,7 +396,7 @@ public class MilvusClientV2 {
|
|
|
retry(()-> collectionService.alterCollectionProperties(this.getRpcStub(), request));
|
|
|
}
|
|
|
/**
|
|
|
- * drop a collection's properties (Available from Milvus v2.5.2)
|
|
|
+ * drop a collection's properties (Available from Milvus v2.5.3)
|
|
|
* @param request drop collection properties request
|
|
|
*/
|
|
|
public void dropCollectionProperties(DropCollectionPropertiesReq request) {
|
|
@@ -444,6 +445,16 @@ public class MilvusClientV2 {
|
|
|
public void loadCollection(LoadCollectionReq request) {
|
|
|
retry(()-> collectionService.loadCollection(this.getRpcStub(), request));
|
|
|
}
|
|
|
+ /**
|
|
|
+ * Refresh loads a collection. Mainly used when there are new segments generated by bulkinsert request.
|
|
|
+ * Force the new segments to be loaded into memory.
|
|
|
+ * Note: this interface will ignore the LoadCollectionReq.refresh flag
|
|
|
+ *
|
|
|
+ * @param request refresh load collection request
|
|
|
+ */
|
|
|
+ public void refreshLoad(RefreshLoadReq request) {
|
|
|
+ retry(()-> collectionService.refreshLoad(this.getRpcStub(), request));
|
|
|
+ }
|
|
|
/**
|
|
|
* Releases a collection from memory in Milvus.
|
|
|
*
|
|
@@ -481,7 +492,7 @@ public class MilvusClientV2 {
|
|
|
}
|
|
|
/**
|
|
|
* Alter an index in Milvus.
|
|
|
- * Deprecated, replaced by alterIndexProperties from v2.5.2, to keep consistence with other SDKs
|
|
|
+ * Deprecated, replaced by alterIndexProperties from v2.5.3, to keep consistence with other SDKs
|
|
|
*
|
|
|
* @param request alter index request
|
|
|
*/
|
|
@@ -495,7 +506,7 @@ public class MilvusClientV2 {
|
|
|
.build());
|
|
|
}
|
|
|
/**
|
|
|
- * Alter an index's properties (Available from Milvus v2.5.2)
|
|
|
+ * Alter an index's properties (Available from Milvus v2.5.3)
|
|
|
*
|
|
|
* @param request alter index request
|
|
|
*/
|
|
@@ -503,7 +514,7 @@ public class MilvusClientV2 {
|
|
|
retry(()->indexService.alterIndexProperties(this.getRpcStub(), request));
|
|
|
}
|
|
|
/**
|
|
|
- * drop an index's properties (Available from Milvus v2.5.2)
|
|
|
+ * drop an index's properties (Available from Milvus v2.5.3)
|
|
|
* @param request drop index properties request
|
|
|
*/
|
|
|
public void dropIndexProperties(DropIndexPropertiesReq request) {
|
|
@@ -654,6 +665,16 @@ public class MilvusClientV2 {
|
|
|
return retry(()->partitionService.listPartitions(this.getRpcStub(), request));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * get a partition stats in Milvus.
|
|
|
+ *
|
|
|
+ * @param request get partition stats request
|
|
|
+ * @return GetPartitionStatsResp
|
|
|
+ */
|
|
|
+ public GetPartitionStatsResp getPartitionStats(GetPartitionStatsReq request) {
|
|
|
+ return retry(()-> partitionService.getPartitionStats(this.getRpcStub(), request));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Loads partitions in a collection in Milvus.
|
|
|
*
|