|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.common.cloud.Slice
public class Slice
A Slice contains immutable information about all shards that share the same shard id (shard leader and replicas).
Constructor Summary | |
---|---|
Slice(String name,
Map<String,ZkNodeProps> shards)
|
Method Summary | |
---|---|
String |
getName()
Return slice name (shard id). |
Map<String,ZkNodeProps> |
getShards()
Get properties for all shards in this slice. |
Map<String,ZkNodeProps> |
getShardsCopy()
Get a copy of the shards data this object holds. |
String |
toString()
|
void |
write(JSONWriter jsonWriter)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Slice(String name, Map<String,ZkNodeProps> shards)
Method Detail |
---|
public Map<String,ZkNodeProps> getShards()
ZkStateReader.getCoreNodeName(String, String)
, ZKNodeProps
as the value.public Map<String,ZkNodeProps> getShardsCopy()
public String getName()
public String toString()
toString
in class Object
public void write(JSONWriter jsonWriter)
write
in interface JSONWriter.Writable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |