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,
String route,
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)
Split the range into partitions.
|
fromString, fullRange, getDocRouter, getRouteField, getRouterSpec, getSearchSlices, partitionRange
public static final String NAME
public Slice getTargetSlice(String id, SolrInputDocument sdoc, String route, 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
partitions
- number of partitionsrange
- range to splitCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.