Package io.milvus.param.collection
Class AlterDatabaseParam.Builder
java.lang.Object
io.milvus.param.collection.AlterDatabaseParam.Builder
- Enclosing class:
AlterDatabaseParam
Builder for
AlterDatabaseParam class.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Verifies parameters and creates a newAlterDatabaseParaminstance.withDatabaseName(@NonNull String databaseName) Sets the database name.withProperty(@NonNull String key, @NonNull String value) Basic method to set a key-value property.withReplicaNumber(int replicaNumber) Sets the replica number in database level, then if load collection doesn't have replica number, it will use this replica number.WithResourceGroups(@NonNull List<String> resourceGroups) Sets the resource groups in database level, then if load collection doesn't have resource groups, it will use this resource groups.
-
Method Details
-
withDatabaseName
Sets the database name. database name can be nil.- Parameters:
databaseName- database name- Returns:
Builder
-
withReplicaNumber
Sets 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
Sets 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(@NonNull @NonNull String key, @NonNull @NonNull String value) Basic method to set a key-value property.- Parameters:
key- the keyvalue- the value- Returns:
Builder
-
build
Verifies parameters and creates a newAlterDatabaseParaminstance.- Returns:
AlterDatabaseParam- Throws:
ParamException
-