org.apache.solr.common.cloud
public class ImplicitDocRouter extends DocRouter
DocRouter.Range
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
DEFAULT, DEFAULT_NAME
Constructor and Description |
---|
ImplicitDocRouter() |
Modifier and Type | Method and Description |
---|---|
Collection<Slice> |
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.
|
Slice |
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
|
boolean |
isTargetSlice(String id,
SolrInputDocument sdoc,
SolrParams params,
String shardId,
DocCollection collection) |
List<DocRouter.Range> |
partitionRange(int partitions,
DocRouter.Range range)
Returns the range for each partition
|
fromString, fullRange, getDocRouter, getRouteField, getRouterSpec, getSearchSlices
public static final String NAME
public Slice getTargetSlice(String id, SolrInputDocument sdoc, SolrParams params, DocCollection collection)
DocRouter
getTargetSlice
in class DocRouter
public boolean isTargetSlice(String id, SolrInputDocument sdoc, SolrParams params, String shardId, DocCollection collection)
isTargetSlice
in class DocRouter
public Collection<Slice> getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)
DocRouter
getSearchSlicesSingle
in class DocRouter
public List<DocRouter.Range> partitionRange(int partitions, DocRouter.Range range)
DocRouter
partitionRange
in class DocRouter
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.