public class RoundRobinDistributionPolicy extends Object implements IDistributionPolicy
构造器和说明 |
---|
RoundRobinDistributionPolicy() |
限定符和类型 | 方法和说明 |
---|---|
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.
|
public void init(Shard[] shards)
IDistributionPolicy
init
在接口中 IDistributionPolicy
public int chooseShardForInsert(DocumentID key)
IDistributionPolicy
chooseShardForInsert
在接口中 IDistributionPolicy
public int chooseShardForDelete(DocumentID key)
IDistributionPolicy
chooseShardForDelete
在接口中 IDistributionPolicy
Copyright © 2009 The Apache Software Foundation