<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../com/yahoo/ycsb/Generator.html" title="class in com.yahoo.ycsb">com.yahoo.ycsb.Generator</A>
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.yahoo.ycsb.IntegerGenerator</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../com/yahoo/ycsb/CounterGenerator.html" title="class in com.yahoo.ycsb">CounterGenerator</A>, <A HREF="../../../com/yahoo/ycsb/ScrambledZipfianGenerator.html" title="class in com.yahoo.ycsb">ScrambledZipfianGenerator</A>, <A HREF="../../../com/yahoo/ycsb/SkewedLatestGenerator.html" title="class in com.yahoo.ycsb">SkewedLatestGenerator</A>, <A HREF="../../../com/yahoo/ycsb/UniformIntegerGenerator.html" title="class in com.yahoo.ycsb">UniformIntegerGenerator</A>, <A HREF="../../../com/yahoo/ycsb/ZipfianGenerator.html" title="class in com.yahoo.ycsb">ZipfianGenerator</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>IntegerGenerator</B><DT>extends <A HREF="../../../com/yahoo/ycsb/Generator.html" title="class in com.yahoo.ycsb">Generator</A></DL>
</PRE>
<P>
A generator that is capable of generating ints as well as strings
Return the previous string generated by the distribution; e.g., returned from the last nextString() call.</TD>
public void <B>setLastInt</B>(int last)</PRE>
<DL>
<DD>Set the last value generated. IntegerGenerator subclasses must use this call
to properly set the last string value, or the lastString() and lastInt() calls won't work.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="nextInt()"><!-- --></A><H3>
nextInt</H3>
<PRE>
public abstract int <B>nextInt</B>()</PRE>
<DL>
<DD>Return the next value as an int. When overriding this method, be sure to call setLastString() properly, or the lastString() call won't work.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="nextString()"><!-- --></A><H3>
nextString</H3>
<PRE>
public java.lang.String <B>nextString</B>()</PRE>
<DL>
<DD>Generate the next string in the distribution.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/yahoo/ycsb/Generator.html#nextString()">nextString</A></CODE> in class <CODE><A HREF="../../../com/yahoo/ycsb/Generator.html" title="class in com.yahoo.ycsb">Generator</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="lastString()"><!-- --></A><H3>
lastString</H3>
<PRE>
public java.lang.String <B>lastString</B>()</PRE>
<DL>
<DD>Return the previous string generated by the distribution; e.g., returned from the last nextString() call.
Calling lastString() should not advance the distribution or have any side effects. If nextString() has not yet
been called, lastString() should return something reasonable.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/yahoo/ycsb/Generator.html#lastString()">lastString</A></CODE> in class <CODE><A HREF="../../../com/yahoo/ycsb/Generator.html" title="class in com.yahoo.ycsb">Generator</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="lastInt()"><!-- --></A><H3>
lastInt</H3>
<PRE>
public int <B>lastInt</B>()</PRE>
<DL>
<DD>Return the previous int generated by the distribution. This call is unique to IntegerGenerator subclasses, and assumes
IntegerGenerator subclasses always return ints for nextInt() (e.g. not arbitrary strings).