public class ShufflingReplicaListTransformer extends Object implements ReplicaListTransformer
| Constructor and Description |
|---|
ShufflingReplicaListTransformer(Random r) |
| Modifier and Type | Method and Description |
|---|---|
void |
transform(List<?> choices)
Transforms the passed in list of choices.
|
public ShufflingReplicaListTransformer(Random r)
public void transform(List<?> choices)
ReplicaListTransformertransform in interface 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 © 2000-2020 Apache Software Foundation. All Rights Reserved.