public interface IDistributionPolicy
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
void init(Shard[] shards)
shards - int chooseShardForInsert(DocumentID key)
key - int chooseShardForDelete(DocumentID key)
key - Copyright © 2009 The Apache Software Foundation