org.apache.solr.common.cloud
Class DocCollection
java.lang.Object
org.apache.solr.common.cloud.ZkNodeProps
org.apache.solr.common.cloud.DocCollection
- All Implemented Interfaces:
- JSONWriter.Writable
public class DocCollection
- extends ZkNodeProps
Models a Collection in zookeeper (but that Java name is obviously taken, hence "DocCollection")
DOC_ROUTER
public static final String DOC_ROUTER
- See Also:
- Constant Field Values
SHARDS
public static final String SHARDS
- See Also:
- Constant Field Values
DocCollection
public DocCollection(String name,
Map<String,Slice> slices,
Map<String,Object> props,
DocRouter router)
- Parameters:
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.
getName
public String getName()
- Return collection name.
getSlice
public Slice getSlice(String sliceName)
getSlices
public Collection<Slice> getSlices()
- Gets the list of slices for this collection.
getSlicesMap
public Map<String,Slice> getSlicesMap()
- Get the map of slices (sliceName->Slice) for this collection.
getRouter
public DocRouter getRouter()
toString
public String toString()
- Overrides:
toString in class ZkNodeProps
write
public void write(JSONWriter jsonWriter)
- Specified by:
write in interface JSONWriter.Writable- Overrides:
write in class ZkNodeProps
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.