Package org.alfresco.solr.tracker
Class ACLIDMurmurRouter
java.lang.Object
org.alfresco.solr.tracker.ACLIDMurmurRouter
- All Implemented Interfaces:
DocRouter
Nodes are evenly distributed over the shards at random based on the murmur hash of the ACL ID.
To use this method, when creating a shard add a new configuration property:
- shard.method=ACL_ID
- shard.instance=<shard.instance>
- shard.count=<shard.count>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrouteAcl(int numShards, int shardInstance, org.alfresco.solr.client.Acl acl) Checks if the incoming ACL document must be indexed on this shard.routeNode(int numShards, int shardInstance, org.alfresco.solr.client.Node node) Checks if the incoming Node must be indexed on this shard.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.solr.tracker.DocRouter
getProperties
-
Constructor Details
-
ACLIDMurmurRouter
public ACLIDMurmurRouter()
-
-
Method Details
-
routeAcl
Description copied from interface:DocRouterChecks if the incoming ACL document must be indexed on this shard. -
routeNode
Description copied from interface:DocRouterChecks if the incoming Node must be indexed on this shard.- Specified by:
routeNodein interfaceDocRouter- Parameters:
numShards- the total shard count.shardInstance- the owning shard instance (i.e. instance number).node- theNodeinstance.- Returns:
- true if the
Nodeinstance must be indexed in the shard which owns thisDocRouterinstance, false otherwise.
-