Package org.opensearch.cluster.routing
Class WeightedRouting
java.lang.Object
org.opensearch.cluster.routing.WeightedRouting
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
@PublicApi(since="2.4.0")
public class WeightedRouting
extends Object
implements org.opensearch.core.common.io.stream.Writeable
Entity for Weighted Round Robin weights
- Opensearch.api:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Constructor Summary
ConstructorsConstructorDescriptionWeightedRouting
(String attributeName, Map<String, Double> weights) WeightedRouting
(WeightedRouting weightedRouting) WeightedRouting
(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
-
Constructor Details
-
WeightedRouting
public WeightedRouting() -
WeightedRouting
-
WeightedRouting
-
WeightedRouting
- Throws:
IOException
-
-
Method Details
-
isSet
public boolean isSet() -
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
weights
-
attributeName
-