milvus-logo
Star
0
Forks
0
Get Started

Class LoadBalanceParam.Builder

  • java.lang.Object
    • io.milvus.param.control.LoadBalanceParam.Builder
    • Method Detail

      • withSourceNodeID

        public LoadBalanceParam.Builder withSourceNodeID​(@NonNull
                                                         @NonNull java.lang.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 java.lang.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 java.util.List<java.lang.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 java.lang.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 java.util.List<java.lang.Long> segmentIDs)
        Sets a sealed segments by ID array to be balanced.
        Parameters:
        segmentIDs - sealed segments id array
        Returns:
        Builder