public class AffinityReplicaListTransformer extends Object implements ReplicaListTransformer
| 限定符和类型 | 方法和说明 |
|---|---|
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)
ReplicaListTransformertransform 在接口中 ReplicaListTransformerchoices - - 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 © 2006–2022 The Apache Software Foundation. All rights reserved.