|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.yahoo.ycsb.Generator
com.yahoo.ycsb.UniformGenerator
public class UniformGenerator
An expression that generates a random integer in the specified range
| Constructor Summary | |
|---|---|
UniformGenerator(java.util.Vector<java.lang.String> values)
Creates a generator that will return strings from the specified set uniformly randomly |
|
| Method Summary | |
|---|---|
java.lang.String |
lastString()
Return the previous string generated by the distribution; e.g., returned from the last nextString() call. |
java.lang.String |
nextString()
Generate the next string in the distribution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UniformGenerator(java.util.Vector<java.lang.String> values)
| Method Detail |
|---|
public java.lang.String nextString()
nextString in class Generatorpublic java.lang.String lastString()
lastString in class Generator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||