public class AffinityReplicaListTransformer extends Object implements ReplicaListTransformer
Modifier and Type | Method and Description |
---|---|
static ReplicaListTransformer |
getInstance(String dividendParam,
String hashParam,
SolrParams requestParams) |
void |
transform(List<?> choices)
Transforms the passed in list of choices.
|
public static ReplicaListTransformer getInstance(String dividendParam, String hashParam, SolrParams requestParams)
dividendParam
- int param to be used directly for mod-based routinghashParam
- String param to be hashed into an int for mod-based routingrequestParams
- the parameters of the Solr requestpublic void transform(List<?> choices)
ReplicaListTransformer
transform
in interface ReplicaListTransformer
choices
- - a list of choices to transform, typically the choices are Replica
objects but choices
can also be String
objects such as URLs passed in via the ShardParams.SHARDS
parameter.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.