org.apache.solr.cloud
Class AssignShard

java.lang.Object
  extended by org.apache.solr.cloud.AssignShard

public class AssignShard
extends Object


Constructor Summary
AssignShard()
           
 
Method Summary
static String assignShard(String collection, ClusterState state, Integer numShards)
          Assign a new unique id up to slices count - then add replicas evenly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssignShard

public AssignShard()
Method Detail

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.