Package io.milvus.param.resourcegroup
Class TransferReplicaParam.Builder
java.lang.Object
io.milvus.param.resourcegroup.TransferReplicaParam.Builder
- Enclosing class:
TransferReplicaParam
Builder for
TransferReplicaParam class.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Verifies parameters and creates a newTransferReplicaParaminstance.withCollectionName(@NonNull String collectionName) Sets the collection name.withDatabaseName(String databaseName) Sets the database name.withReplicaNumber(@NonNull Long replicaNumber) Specify number of replicas to transferwithSourceGroupName(@NonNull String groupName) Sets the source group name.withTargetGroupName(@NonNull String groupName) Sets the target group name.
-
Method Details
-
withSourceGroupName
Sets the source group name. group name cannot be empty or null.- Parameters:
groupName- source group name- Returns:
Builder
-
withTargetGroupName
Sets the target group name. group name cannot be empty or null.- Parameters:
groupName- target group name- Returns:
Builder
-
withCollectionName
Sets the collection name. Collection name cannot be empty or null.- Parameters:
collectionName- collection name- Returns:
Builder
-
withDatabaseName
Sets the database name. database name can be nil.- Parameters:
databaseName- database name- Returns:
Builder
-
withReplicaNumber
Specify number of replicas to transfer- Parameters:
replicaNumber- number of replicas to transfer- Returns:
Builder
-
build
Verifies parameters and creates a newTransferReplicaParaminstance.- Returns:
TransferReplicaParam- Throws:
ParamException
-