com.yahoo.ycsb
Class SkewedLatestGenerator

java.lang.Object
  extended by com.yahoo.ycsb.Generator
      extended by com.yahoo.ycsb.IntegerGenerator
          extended by com.yahoo.ycsb.SkewedLatestGenerator

public class SkewedLatestGenerator
extends IntegerGenerator

Generate a popularity distribution of items, skewed to favor recent items significantly more than older items.


Constructor Summary
SkewedLatestGenerator(CounterGenerator basis)
           
 
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.
 
Methods inherited from class com.yahoo.ycsb.IntegerGenerator
lastInt, lastString, nextString, setLastInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkewedLatestGenerator

public SkewedLatestGenerator(CounterGenerator basis)
Method Detail

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

main

public static void main(java.lang.String[] args)