Package io.milvus.param.control
Class LoadBalanceParam.Builder
- java.lang.Object
-
- io.milvus.param.control.LoadBalanceParam.Builder
-
- Enclosing class:
- LoadBalanceParam
public static final class LoadBalanceParam.Builder extends Object
Builder forLoadBalanceParamclass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadBalanceParam.BuilderaddDestinationNodeID(@NonNull Long destNodeID)Adds the destination query node by ID to which the sealed segments will be balanced.LoadBalanceParam.BuilderaddSegmentID(@NonNull Long segmentID)Adds a sealed segments by ID to be balanced.LoadBalanceParambuild()Verifies parameters and creates a newLoadBalanceParaminstance.LoadBalanceParam.BuilderwithDestinationNodeID(@NonNull List<Long> destNodeIDs)Sets the destination query node by ID array to which the sealed segments will be balance.LoadBalanceParam.BuilderwithSegmentIDs(@NonNull List<Long> segmentIDs)Sets a sealed segments by ID array to be balanced.LoadBalanceParam.BuilderwithSourceNodeID(@NonNull Long srcNodeID)Sets the source query node by ID in which the sealed segments were loaded.
-
-
-
Method Detail
-
withSourceNodeID
public LoadBalanceParam.Builder withSourceNodeID(@NonNull @NonNull Long srcNodeID)
Sets the source query node by ID in which the sealed segments were loaded.- Parameters:
srcNodeID- source query node id- Returns:
Builder
-
addDestinationNodeID
public LoadBalanceParam.Builder addDestinationNodeID(@NonNull @NonNull Long destNodeID)
Adds the destination query node by ID to which the sealed segments will be balanced.- Parameters:
destNodeID- destination query node id- Returns:
Builder
-
withDestinationNodeID
public LoadBalanceParam.Builder withDestinationNodeID(@NonNull @NonNull List<Long> destNodeIDs)
Sets the destination query node by ID array to which the sealed segments will be balance.- Parameters:
destNodeIDs- destination query node id array- Returns:
Builder
-
addSegmentID
public LoadBalanceParam.Builder addSegmentID(@NonNull @NonNull Long segmentID)
Adds a sealed segments by ID to be balanced.- Parameters:
segmentID- sealed segment id- Returns:
Builder
-
withSegmentIDs
public LoadBalanceParam.Builder withSegmentIDs(@NonNull @NonNull List<Long> segmentIDs)
Sets a sealed segments by ID array to be balanced.- Parameters:
segmentIDs- sealed segments id array- Returns:
Builder
-
build
public LoadBalanceParam build() throws ParamException
Verifies parameters and creates a newLoadBalanceParaminstance.- Returns:
LoadBalanceParam- Throws:
ParamException
-
-