org.apache.solr.cloud
public class Assign extends Object
Constructor and Description |
---|
Assign() |
Modifier and Type | Method and Description |
---|---|
static String |
assignNode(String collection,
ClusterState state) |
static String |
assignShard(String collection,
ClusterState state,
Integer numShards)
Assign a new unique id up to slices count - then add replicas evenly.
|
static ArrayList<org.apache.solr.cloud.Assign.Node> |
getNodesForNewShard(ClusterState clusterState,
String collectionName,
int numSlices,
int maxShardsPerNode,
int repFactor,
String createNodeSetStr) |
public static String assignNode(String collection, ClusterState state)
public static String assignShard(String collection, ClusterState state, Integer numShards)
public static ArrayList<org.apache.solr.cloud.Assign.Node> getNodesForNewShard(ClusterState clusterState, String collectionName, int numSlices, int maxShardsPerNode, int repFactor, String createNodeSetStr)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.