|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDistributionPolicy
A distribution policy decides, given a document with a document id, which one shard the request should be sent to if the request is an insert, and which shard(s) the request should be sent to if the request is a delete.
Method Summary | |
---|---|
int |
chooseShardForDelete(DocumentID key)
Choose a shard or all shards to send a delete request. |
int |
chooseShardForInsert(DocumentID key)
Choose a shard to send an insert request. |
void |
init(Shard[] shards)
Initialization. |
Method Detail |
---|
void init(Shard[] shards)
shards
- int chooseShardForInsert(DocumentID key)
key
-
int chooseShardForDelete(DocumentID key)
key
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |