public class CompositeIdRouter extends HashBasedRouter
DocRouter.Range| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
DEFAULT, DEFAULT_NAME| Constructor and Description |
|---|
CompositeIdRouter() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getBits(String firstPart,
int commaIdx) |
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.
|
List<DocRouter.Range> |
partitionRange(int partitions,
DocRouter.Range range)
Returns the range for each partition
|
protected void |
setBits(int firstBits) |
int |
sliceHash(String id,
SolrInputDocument doc,
SolrParams params) |
getId, getTargetSlice, hashToSlice, isTargetSlicefromString, fullRange, getDocRouter, getSearchSlicespublic static final String NAME
protected void setBits(int firstBits)
protected int getBits(String firstPart, int commaIdx)
public int sliceHash(String id, SolrInputDocument doc, SolrParams params)
sliceHash in class HashBasedRouterpublic Collection<Slice> getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)
DocRoutergetSearchSlicesSingle in class HashBasedRouterpublic List<DocRouter.Range> partitionRange(int partitions, DocRouter.Range range)
DocRouterpartitionRange in class DocRouterCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.