|
|||||||||
| 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.IntegerGenerator
public abstract class IntegerGenerator
A generator that is capable of generating ints as well as strings
| Constructor Summary | |
|---|---|
IntegerGenerator()
|
|
| Method Summary | |
|---|---|
int |
lastInt()
Return the previous int generated by the distribution. |
java.lang.String |
lastString()
Return the previous string generated by the distribution; e.g., returned from the last nextString() call. |
abstract int |
nextInt()
Return the next value as an int. |
java.lang.String |
nextString()
Generate the next string in the distribution. |
void |
setLastInt(int last)
Set the last value generated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntegerGenerator()
| Method Detail |
|---|
public void setLastInt(int last)
public abstract int nextInt()
public java.lang.String nextString()
nextString in class Generatorpublic java.lang.String lastString()
lastString in class Generatorpublic int lastInt()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||