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

Packages that use Slice
org.apache.solr.client.solrj.io.stream: Stream implementations for the Streaming Aggregation API
org.apache.solr.client.solrj.util: Utilities for Solr client applications.
org.apache.solr.common.cloud: Common Solr Cloud and ZooKeeper related classes reused on both clients & server.

### Uses of Slice in org.apache.solr.client.solrj.io.stream

Methods in org.apache.solr.client.solrj.io.stream that return Slice
`static Slice[]` DeepRandomStream.`getSlices(String collectionName, ZkStateReader zkStateReader, boolean checkAlias)`
`static Slice[]` CloudSolrStream.`getSlices(String collectionName, ZkStateReader zkStateReader, boolean checkAlias)`

### Uses of Slice in org.apache.solr.client.solrj.util

Method parameters in org.apache.solr.client.solrj.util with type arguments of type Slice
`static void` ClientUtils.`addSlices(Map<String,Slice> target, String collectionName, Collection<Slice> slices, boolean multiCollection)` Constructs a slices map from a collection of slices and handles disambiguation if multiple collections are being queried simultaneously
`static void` ClientUtils.`addSlices(Map<String,Slice> target, String collectionName, Collection<Slice> slices, boolean multiCollection)` Constructs a slices map from a collection of slices and handles disambiguation if multiple collections are being queried simultaneously

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

Methods in org.apache.solr.common.cloud that return Slice
`Slice` Slice.`copyWith(Replica modified)` Make a copy with a modified replica
`Slice[]` DocCollection.`getActiveSlicesArr()` Return array of active slices for this collection (performance optimization).
`Slice` DocCollection.`getSlice(String sliceName)`
`abstract Slice` DocRouter.`getTargetSlice(String id, SolrInputDocument sdoc, String route, SolrParams params, DocCollection collection)` Returns the Slice that the document should reside on, or null if there is not enough information
`Slice` ImplicitDocRouter.`getTargetSlice(String id, SolrInputDocument sdoc, String route, SolrParams params, DocCollection collection)`
`Slice` HashBasedRouter.`getTargetSlice(String id, SolrInputDocument sdoc, String route, SolrParams params, DocCollection collection)`
`protected Slice` HashBasedRouter.`hashToSlice(int hash, DocCollection collection)`

Methods in org.apache.solr.common.cloud that return types with arguments of type Slice
`Collection<Slice>` DocCollection.`getActiveSlices()` Return the list of active slices for this collection.
`Map<String,Slice>` DocCollection.`getActiveSlicesMap()` Get the map of active slices (sliceName->Slice) for this collection.
`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.
`Collection<Slice>` CompositeIdRouter.`getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)`
`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>` ImplicitDocRouter.`getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)`
`Collection<Slice>` HashBasedRouter.`getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)`
`Collection<Slice>` DocCollection.`getSlices()` Gets the list of all slices for this collection.
`Map<String,Slice>` DocCollection.`getSlicesMap()` Get the map of all slices (sliceName->Slice) for this collection.
`Iterator<Slice>` DocCollection.`iterator()`
`static Map<String,Slice>` Slice.`loadAllFromMap(String collection, Map<String,Object> genericSlices)` Loads multiple slices into a Map from a generic Map that probably came from deserialized JSON.

Method parameters in org.apache.solr.common.cloud with type arguments of type Slice
`DocCollection` DocCollection.`copyWithSlices(Map<String,Slice> slices)` Use this to make an exact copy of DocCollection with a new set of Slices and every other property as is

Constructor parameters in org.apache.solr.common.cloud with type arguments of type Slice
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)`