Package io.milvus.param.resourcegroup
Class TransferNodeParam.Builder
java.lang.Object
io.milvus.param.resourcegroup.TransferNodeParam.Builder
- Enclosing class:
TransferNodeParam
Builder for
TransferNodeParam class.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Verifies parameters and creates a newTransferNodeParaminstance.withNodeNumber(@NonNull Integer nodeNumber) Specify query nodes to transfer to another resource groupwithSourceGroupName(@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
-
withNodeNumber
Specify query nodes to transfer to another resource group- Parameters:
nodeNumber- number of query nodes- Returns:
Builder
-
build
Verifies parameters and creates a newTransferNodeParaminstance.- Returns:
TransferNodeParam- Throws:
ParamException
-