mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-20 11:38:28 -06:00
another example for WeightedLongs
This commit is contained in:
parent
29021a4c38
commit
8a3f35afbb
@ -25,6 +25,7 @@ public class WeightedLongs implements LongFunction<Long> {
|
||||
private long[] values;
|
||||
|
||||
@Example({"WeightedLongs('1:10;3;5;12345;1","Yield 1 62.5% of the time, 3 31.25% of the time, and 12345 6.2% of the time"})
|
||||
@Example({"WeightedLongs('1,6,7","Yield 1 33.3% of the time, 6 33.3% of the time, and 7 33.3% of the time"})
|
||||
public WeightedLongs(String valuesAndWeights) {
|
||||
this.valuesAndWeights = valuesAndWeights;
|
||||
parseWeights();
|
||||
|
Loading…
Reference in New Issue
Block a user