|
@@ -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, to keep consistence with other SDKs
|
|
|
+ * Deprecated, replaced by alterDatabaseProperties from v2.4.10, 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.
|
|
|
+ * Alter a database's properties. (Available from Milvus v2.4.10)
|
|
|
* @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.4.10)
|
|
|
* @param request alter database properties request
|
|
|
*/
|
|
|
public void dropDatabaseProperties(DropDatabasePropertiesReq request) {
|
|
@@ -373,7 +374,7 @@ public class MilvusClientV2 {
|
|
|
}
|
|
|
/**
|
|
|
* Alter a collection in Milvus.
|
|
|
- * Deprecated, replaced by alterCollectionProperties, to keep consistence with other SDKs
|
|
|
+ * Deprecated, replaced by alterCollectionProperties from v2.4.10, to keep consistence with other SDKs
|
|
|
*
|
|
|
* @param request alter collection request
|
|
|
*/
|
|
@@ -386,7 +387,7 @@ public class MilvusClientV2 {
|
|
|
.build());
|
|
|
}
|
|
|
/**
|
|
|
- * Alter a collection's properties.
|
|
|
+ * Alter a collection's properties. (Available from Milvus v2.4.10)
|
|
|
*
|
|
|
* @param request alter collection properties request
|
|
|
*/
|
|
@@ -394,7 +395,7 @@ public class MilvusClientV2 {
|
|
|
retry(()-> collectionService.alterCollectionProperties(this.getRpcStub(), request));
|
|
|
}
|
|
|
/**
|
|
|
- * drop a collection's properties.
|
|
|
+ * drop a collection's properties. (Available from Milvus v2.4.10)
|
|
|
* @param request drop collection properties request
|
|
|
*/
|
|
|
public void dropCollectionProperties(DropCollectionPropertiesReq request) {
|
|
@@ -443,6 +444,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.
|
|
|
*
|
|
@@ -480,7 +491,7 @@ public class MilvusClientV2 {
|
|
|
}
|
|
|
/**
|
|
|
* Alter an index in Milvus.
|
|
|
- * Deprecated, replaced by alterIndexProperties, to keep consistence with other SDKs
|
|
|
+ * Deprecated, replaced by alterIndexProperties from v2.4.10, to keep consistence with other SDKs
|
|
|
*
|
|
|
* @param request alter index request
|
|
|
*/
|
|
@@ -494,7 +505,7 @@ public class MilvusClientV2 {
|
|
|
.build());
|
|
|
}
|
|
|
/**
|
|
|
- * Alter an index's properties.
|
|
|
+ * Alter an index's properties. (Available from Milvus v2.4.10)
|
|
|
*
|
|
|
* @param request alter index request
|
|
|
*/
|
|
@@ -502,7 +513,7 @@ public class MilvusClientV2 {
|
|
|
retry(()->indexService.alterIndexProperties(this.getRpcStub(), request));
|
|
|
}
|
|
|
/**
|
|
|
- * drop an index's properties.
|
|
|
+ * drop an index's properties. (Available from Milvus v2.4.10)
|
|
|
* @param request drop index properties request
|
|
|
*/
|
|
|
public void dropIndexProperties(DropIndexPropertiesReq request) {
|
|
@@ -653,6 +664,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.
|
|
|
*
|