Package org.apache.solr.common.cloud
Class RoutingRule
- java.lang.Object
-
- org.apache.solr.common.cloud.ZkNodeProps
-
- org.apache.solr.common.cloud.RoutingRule
-
- All Implemented Interfaces:
org.noggit.JSONWriter.Writable
public class RoutingRule extends ZkNodeProps
Used for routing docs with particular keys into another collection
-
-
Field Summary
-
Fields inherited from class org.apache.solr.common.cloud.ZkNodeProps
propMap
-
-
Constructor Summary
Constructors Constructor Description RoutingRule(String routeKey, Map<String,Object> propMap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DocRouter.Range>
getRouteRanges()
String
getRouteRangesStr()
String
getTargetCollectionName()
boolean
isExpired()
static String
makeExpiryAt(long timeMsFromNow)
String
toString()
-
Methods inherited from class org.apache.solr.common.cloud.ZkNodeProps
containsKey, equals, fromKeyVals, get, getBool, getInt, getProperties, getStr, getStr, hashCode, keySet, load, plus, plus, shallowCopy, write
-
-
-
-
Method Detail
-
getRouteRanges
public List<DocRouter.Range> getRouteRanges()
-
getTargetCollectionName
public String getTargetCollectionName()
-
makeExpiryAt
public static String makeExpiryAt(long timeMsFromNow)
-
isExpired
public boolean isExpired()
-
getRouteRangesStr
public String getRouteRangesStr()
-
toString
public String toString()
- Overrides:
toString
in classZkNodeProps
-
-