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.
|
public static String assignNode(String collection, ClusterState state)
public static String assignShard(String collection, ClusterState state, Integer numShards)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.