## Uses of Class
org.apache.solr.common.cloud.DocCollection

Packages that use DocCollection
Package | Description
--- | ---
org.apache.solr.client.solrj.request | Convenience classes for dealing with various types of Solr requests.
org.apache.solr.common.cloud | Common Solr Cloud and ZooKeeper related classes reused on both clients & server.

### Uses of DocCollection in org.apache.solr.client.solrj.request

Methods in org.apache.solr.client.solrj.request with parameters of type DocCollection
Modifier and Type | Method and Description
--- | ---
`Map<String,LBHttpSolrServer.Req>` | UpdateRequest.`getRoutes(DocRouter router, DocCollection col, Map<String,List<String>> urlMap, ModifiableSolrParams params, String idField)`

### Uses of DocCollection in org.apache.solr.common.cloud

Methods in org.apache.solr.common.cloud that return DocCollection
Modifier and Type | Method and Description
--- | ---
`DocCollection` | ClusterState.`getCollection(String collection)` Get the named DocCollection object, or throw an exception if it doesn't exist.
`DocCollection` | ClusterState.`getCollectionOrNull(String collection)`

Methods in org.apache.solr.common.cloud that return types with arguments of type DocCollection
Modifier and Type | Method and Description
--- | ---
`Map<String,DocCollection>` | ClusterState.`getCollectionStates()` Deprecated.

Methods in org.apache.solr.common.cloud with parameters of type DocCollection
Modifier and Type | Method and Description
--- | ---
`protected String` | DocRouter.`getRouteField(DocCollection coll)`
`Collection<Slice>` | DocRouter.`getSearchSlices(String shardKeys, SolrParams params, DocCollection collection)` This method is consulted to determine what slices should be queried for a request when an explicit shards parameter was not used.
`abstract Collection<Slice>` | DocRouter.`getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)` This method is consulted to determine what slices should be queried for a request when an explicit shards parameter was not used.
`Collection<Slice>` | HashBasedRouter.`getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)`
`Collection<Slice>` | ImplicitDocRouter.`getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)`
`Collection<Slice>` | CompositeIdRouter.`getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)`
`abstract Slice` | DocRouter.`getTargetSlice(String id, SolrInputDocument sdoc, SolrParams params, DocCollection collection)` Returns the Slice that the document should reside on, or null if there is not enough information
`Slice` | HashBasedRouter.`getTargetSlice(String id, SolrInputDocument sdoc, SolrParams params, DocCollection collection)`
`Slice` | ImplicitDocRouter.`getTargetSlice(String id, SolrInputDocument sdoc, SolrParams params, DocCollection collection)`
`protected Slice` | HashBasedRouter.`hashToSlice(int hash, DocCollection collection)`
`abstract boolean` | DocRouter.`isTargetSlice(String id, SolrInputDocument sdoc, SolrParams params, String shardId, DocCollection collection)`
`boolean` | HashBasedRouter.`isTargetSlice(String id, SolrInputDocument sdoc, SolrParams params, String shardId, DocCollection collection)`
`boolean` | ImplicitDocRouter.`isTargetSlice(String id, SolrInputDocument sdoc, SolrParams params, String shardId, DocCollection collection)`
`int` | HashBasedRouter.`sliceHash(String id, SolrInputDocument sdoc, SolrParams params, DocCollection collection)`
`int` | CompositeIdRouter.`sliceHash(String id, SolrInputDocument doc, SolrParams params, DocCollection collection)`

Method parameters in org.apache.solr.common.cloud with type arguments of type DocCollection
Modifier and Type | Method and Description
--- | ---
`ClusterState` | ClusterState.`copyWith(Map<String,DocCollection> modified)`

Constructor parameters in org.apache.solr.common.cloud with type arguments of type DocCollection
Constructor and Description
`ClusterState(Integer zkClusterStateVersion, Set<String> liveNodes, Map<String,DocCollection> collectionStates)` Deprecated. prefer another constructor
`ClusterState(Integer zkClusterStateVersion, Set<String> liveNodes, Map<String,DocCollection> collectionStates, ZkStateReader stateReader)` Use this constr when ClusterState is meant for consumption.
`ClusterState(Set<String> liveNodes, Map<String,DocCollection> collectionStates)` Use this constr when ClusterState is meant for publication.