Package io.milvus.param.resourcegroup
Class TransferNodeParam.Builder
- java.lang.Object
-
- io.milvus.param.resourcegroup.TransferNodeParam.Builder
-
- Enclosing class:
- TransferNodeParam
public static final class TransferNodeParam.Builder extends Object
Builder forTransferNodeParamclass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferNodeParambuild()Verifies parameters and creates a newTransferNodeParaminstance.TransferNodeParam.BuilderwithNodeNumber(@NonNull Integer nodeNumber)Specify query nodes to transfer to another resource groupTransferNodeParam.BuilderwithSourceGroupName(@NonNull String groupName)Sets the source group name.TransferNodeParam.BuilderwithTargetGroupName(@NonNull String groupName)Sets the target group name.
-
-
-
Method Detail
-
withSourceGroupName
public TransferNodeParam.Builder withSourceGroupName(@NonNull @NonNull String groupName)
Sets the source group name. group name cannot be empty or null.- Parameters:
groupName- source group name- Returns:
Builder
-
withTargetGroupName
public TransferNodeParam.Builder withTargetGroupName(@NonNull @NonNull String groupName)
Sets the target group name. group name cannot be empty or null.- Parameters:
groupName- target group name- Returns:
Builder
-
withNodeNumber
public TransferNodeParam.Builder withNodeNumber(@NonNull @NonNull Integer nodeNumber)
Specify query nodes to transfer to another resource group- Parameters:
nodeNumber- number of query nodes- Returns:
Builder
-
build
public TransferNodeParam build() throws ParamException
Verifies parameters and creates a newTransferNodeParaminstance.- Returns:
TransferNodeParam- Throws:
ParamException
-
-