public class KeyValueLocator extends Object implements Locator
This Locator finds the proper Nodes for every incoming BinaryRequest.
Depending on the bucket type used, it either uses partition/vbucket (couchbase) or ketama (memcache) hashing. For broadcast-type operations, it will return all suitable nodes without hashing by key.
| Constructor and Description |
|---|
KeyValueLocator() |
| Modifier and Type | Method and Description |
|---|---|
Node[] |
locate(CouchbaseRequest request,
Set<Node> nodes,
ClusterConfig cluster) |
public Node[] locate(CouchbaseRequest request, Set<Node> nodes, ClusterConfig cluster)
Copyright © 2016 Couchbase, Inc.. All rights reserved.