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) |
protected int |
sliceHash(String id,
SolrInputDocument doc,
SolrParams params) |
getId, getTargetSlice, hashToSlice
fromString, fullRange, getDocRouter, getSearchSlices
public static final String NAME
protected void setBits(int firstBits)
protected int getBits(String firstPart, int commaIdx)
protected int sliceHash(String id, SolrInputDocument doc, SolrParams params)
sliceHash
in class HashBasedRouter
public Collection<Slice> getSearchSlicesSingle(String shardKey, SolrParams params, DocCollection collection)
DocRouter
getSearchSlicesSingle
in class HashBasedRouter
public List<DocRouter.Range> partitionRange(int partitions, DocRouter.Range range)
DocRouter
partitionRange
in class DocRouter
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.