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

Packages that use DocRouter
org.apache.solr.client.solrj.impl: Concrete implementations of client API classes.
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 DocRouter in org.apache.solr.client.solrj.impl

Methods in org.apache.solr.client.solrj.impl with parameters of type DocRouter
`protected Map<String,LBHttpSolrClient.Req>` CloudSolrClient.`createRoutes(UpdateRequest updateRequest, ModifiableSolrParams routableParams, DocCollection col, DocRouter router, Map<String,List<String>> urlMap, String idField)`
`protected Map<String,? extends LBSolrClient.Req>` BaseCloudSolrClient.`createRoutes(UpdateRequest updateRequest, ModifiableSolrParams routableParams, DocCollection col, DocRouter router, Map<String,List<String>> urlMap, String routeField)`

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

Methods in org.apache.solr.client.solrj.request with parameters of type DocRouter
`Map<String,LBHttpSolrClient.Req>` UpdateRequest.`getRoutes(DocRouter router, DocCollection col, Map<String,List<String>> urlMap, ModifiableSolrParams params, String idField)` Deprecated. since 8.0, uses `UpdateRequest.getRoutesToCollection(DocRouter, DocCollection, Map, ModifiableSolrParams, String)` instead
`Map<String,LBSolrClient.Req>` UpdateRequest.`getRoutesToCollection(DocRouter router, DocCollection col, Map<String,List<String>> urlMap, ModifiableSolrParams params, String idField)`

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

Subclasses of DocRouter in org.apache.solr.common.cloud
`class` `CompositeIdRouter` CompositeIdRouter partitions ids based on a `CompositeIdRouter.SEPARATOR`, hashes each partition and merges the hashes together to map the id to a slice.
`class` `HashBasedRouter`
`class` `ImplicitDocRouter` This document router is for custom sharding
`class` `PlainIdRouter`

Fields in org.apache.solr.common.cloud declared as DocRouter
`static DocRouter` DocRouter.`DEFAULT`

Methods in org.apache.solr.common.cloud that return DocRouter
`static DocRouter` DocRouter.`getDocRouter(String routerName)`
`DocRouter` DocCollection.`getRouter()`

Constructors in org.apache.solr.common.cloud with parameters of type DocRouter
Constructor and Description
`DocCollection(String name, Map<String,Slice> slices, Map<String,Object> props, DocRouter router)`
`DocCollection(String name, Map<String,Slice> slices, Map<String,Object> props, DocRouter router, int zkVersion, String znode)`