Package io.milvus.param.collection
Class AlterDatabaseParam.Builder
- java.lang.Object
-
- io.milvus.param.collection.AlterDatabaseParam.Builder
-
- Enclosing class:
- AlterDatabaseParam
public static final class AlterDatabaseParam.Builder extends Object
Builder forAlterDatabaseParamclass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlterDatabaseParambuild()Verifies parameters and creates a newAlterDatabaseParaminstance.AlterDatabaseParam.BuilderwithDatabaseName(String databaseName)Set the database name.AlterDatabaseParam.BuilderwithProperty(String key, String value)Basic method to set a key-value property.AlterDatabaseParam.BuilderwithReplicaNumber(int replicaNumber)Set the replica number in database level, then if load collection doesn't have replica number, it will use this replica number.AlterDatabaseParam.BuilderwithResourceGroups(List<String> resourceGroups)Set the resource groups in database level, then if load collection doesn't have resource groups, it will use this resource groups.
-
-
-
Method Detail
-
withDatabaseName
public AlterDatabaseParam.Builder withDatabaseName(String databaseName)
Set the database name. Database name cannot be empty or null.- Parameters:
databaseName- database name- Returns:
Builder
-
withReplicaNumber
public AlterDatabaseParam.Builder withReplicaNumber(int replicaNumber)
Set the replica number in database level, then if load collection doesn't have replica number, it will use this replica number.- Parameters:
replicaNumber- replica number- Returns:
Builder
-
withResourceGroups
public AlterDatabaseParam.Builder withResourceGroups(List<String> resourceGroups)
Set the resource groups in database level, then if load collection doesn't have resource groups, it will use this resource groups.- Parameters:
resourceGroups- resource group names- Returns:
Builder
-
withProperty
public AlterDatabaseParam.Builder withProperty(String key, String value)
Basic method to set a key-value property.- Parameters:
key- the keyvalue- the value- Returns:
Builder
-
build
public AlterDatabaseParam build() throws ParamException
Verifies parameters and creates a newAlterDatabaseParaminstance.- Returns:
AlterDatabaseParam- Throws:
ParamException
-
-