public abstract class ShardShuffler extends Object
| Constructor and Description |
|---|
ShardShuffler() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
nextSeed()
Return a new seed.
|
List<ShardRouting> |
shuffle(List<ShardRouting> shards)
Equivalent to calling
shuffle(shards, nextSeed()). |
abstract List<ShardRouting> |
shuffle(List<ShardRouting> shards,
int seed)
Return a shuffled view over the list of shards.
|
public abstract int nextSeed()
public abstract List<ShardRouting> shuffle(List<ShardRouting> shards, int seed)
public List<ShardRouting> shuffle(List<ShardRouting> shards)
shuffle(shards, nextSeed()).Copyright © 2009–2016. All rights reserved.