|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.common.cloud.ZkNodeProps
org.apache.solr.common.cloud.DocCollection
public class DocCollection
Models a Collection in zookeeper (but that Java name is obviously taken, hence "DocCollection")
| Field Summary | |
|---|---|
static String |
DOC_ROUTER
|
static String |
SHARDS
|
| Fields inherited from class org.apache.solr.common.cloud.ZkNodeProps |
|---|
propMap |
| Constructor Summary | |
|---|---|
DocCollection(String name,
Map<String,Slice> slices,
Map<String,Object> props,
DocRouter router)
|
|
| Method Summary | |
|---|---|
Collection<Slice> |
getActiveSlices()
Return the list of active slices for this collection. |
Map<String,Slice> |
getActiveSlicesMap()
Get the map of active slices (sliceName->Slice) for this collection. |
String |
getName()
Return collection name. |
DocRouter |
getRouter()
|
Slice |
getSlice(String sliceName)
|
Collection<Slice> |
getSlices()
Gets the list of all slices for this collection. |
Map<String,Slice> |
getSlicesMap()
Get the map of all slices (sliceName->Slice) for this collection. |
String |
toString()
|
void |
write(org.noggit.JSONWriter jsonWriter)
|
| Methods inherited from class org.apache.solr.common.cloud.ZkNodeProps |
|---|
containsKey, fromKeyVals, get, getInt, getProperties, getStr, getStr, keySet, load, makeMap, shallowCopy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DOC_ROUTER
public static final String SHARDS
| Constructor Detail |
|---|
public DocCollection(String name,
Map<String,Slice> slices,
Map<String,Object> props,
DocRouter router)
name - The name of the collectionslices - The logical shards of the collection. This is used directly and a copy is not made.props - The properties of the slice. This is used directly and a copy is not made.| Method Detail |
|---|
public String getName()
public Slice getSlice(String sliceName)
public Collection<Slice> getSlices()
public Collection<Slice> getActiveSlices()
public Map<String,Slice> getSlicesMap()
public Map<String,Slice> getActiveSlicesMap()
public DocRouter getRouter()
public String toString()
toString in class ZkNodePropspublic void write(org.noggit.JSONWriter jsonWriter)
write in interface org.noggit.JSONWriter.Writablewrite in class ZkNodeProps
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||