Package | Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
Slice |
DocCollection.getSlice(String sliceName) |
Slice |
ClusterState.getSlice(String collection,
String sliceName)
Get the named Slice for collection, or null if not found.
|
Slice |
ImplicitDocRouter.getTargetSlice(String id,
SolrInputDocument sdoc,
SolrParams params,
DocCollection collection) |
Slice |
HashBasedRouter.getTargetSlice(String id,
SolrInputDocument sdoc,
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
|
protected Slice |
HashBasedRouter.hashToSlice(int hash,
DocCollection collection) |
Modifier and Type | Method and Description |
---|---|
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> |
ImplicitDocRouter.getSearchSlicesSingle(String shardKey,
SolrParams params,
DocCollection collection) |
Collection<Slice> |
HashBasedRouter.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> |
CompositeIdRouter.getSearchSlicesSingle(String shardKey,
SolrParams params,
DocCollection collection) |
Collection<Slice> |
DocCollection.getSlices()
Gets the list of slices for this collection.
|
Collection<Slice> |
ClusterState.getSlices(String collection) |
Map<String,Slice> |
DocCollection.getSlicesMap()
Get the map of slices (sliceName->Slice) for this collection.
|
Map<String,Slice> |
ClusterState.getSlicesMap(String collection) |
Constructor and Description |
---|
DocCollection(String name,
Map<String,Slice> slices,
Map<String,Object> props,
DocRouter router) |
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.