Class ShufflingReplicaListTransformer
- java.lang.Object
-
- org.apache.solr.client.solrj.routing.ShufflingReplicaListTransformer
-
- All Implemented Interfaces:
ReplicaListTransformer
public class ShufflingReplicaListTransformer extends Object implements ReplicaListTransformer
-
-
Constructor Summary
Constructors Constructor Description ShufflingReplicaListTransformer(Random r)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> void
transform(List<T> choices)
Transforms the passed in list of choices.
-
-
-
Constructor Detail
-
ShufflingReplicaListTransformer
public ShufflingReplicaListTransformer(Random r)
-
-
Method Detail
-
transform
public <T> void transform(List<T> choices)
Description copied from interface:ReplicaListTransformer
Transforms the passed in list of choices. Transformations can include (but are not limited to) reordering of elements (e.g. via shuffling) and removal of elements (i.e. filtering).- Specified by:
transform
in interfaceReplicaListTransformer
- Parameters:
choices
- - a list of choices to transform, typically the choices areReplica
objects but choices can also beString
objects such as URLs passed in via theShardParams.SHARDS
parameter.
-
-