com.yahoo.ycsb.generator
Class ChurnGenerator
java.lang.Object
com.yahoo.ycsb.generator.Generator
com.yahoo.ycsb.generator.IntegerGenerator
com.yahoo.ycsb.generator.ChurnGenerator
public class ChurnGenerator
- extends IntegerGenerator
Generate a popularity distribution of items, skewed to favor recent items
significantly more than older items.
Constructor Summary |
ChurnGenerator(int workingsetmaxsize,
int workingsetdelta,
int recordcount)
|
Method Summary |
static void |
main(java.lang.String[] args)
|
int |
nextInt()
Generate the next string in the distribution, skewed Zipfian favoring the
items most recently returned by the basis generator. |
void |
resizeWorkingSet()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChurnGenerator
public ChurnGenerator(int workingsetmaxsize,
int workingsetdelta,
int recordcount)
nextInt
public int nextInt()
- Generate the next string in the distribution, skewed Zipfian favoring the
items most recently returned by the basis generator.
- Specified by:
nextInt
in class IntegerGenerator
resizeWorkingSet
public void resizeWorkingSet()
- Parameters:
args
-
main
public static void main(java.lang.String[] args)