org.apache.solr.cloud
Class AssignShard
java.lang.Object
org.apache.solr.cloud.AssignShard
public class AssignShard
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssignShard
public AssignShard()
assignShard
public static String assignShard(String collection,
ClusterState state,
Integer numShards)
- Assign a new unique id up to slices count - then add replicas evenly.
- Returns:
- the assigned shard id
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.