Class ShufflingReplicaListTransformer

java.lang.Object
org.apache.solr.client.solrj.routing.ShufflingReplicaListTransformer
All Implemented Interfaces:
ReplicaListTransformer

public class ShufflingReplicaListTransformer extends Object implements ReplicaListTransformer
  • Constructor Details

    • ShufflingReplicaListTransformer

      public ShufflingReplicaListTransformer(Random r)
  • Method Details

    • 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 interface ReplicaListTransformer
      Parameters:
      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.