public Worker(IDictionaryComponent dictionary, int workLoad,
               int recordCount, Distribution dist, double theta)
 {
     this.dictionary = dictionary;
     this.workLoad   = workLoad;
     keys            = new long[workLoad];
     dataGenerator   = new YCSBDataGenerator(recordCount, 1, dist, theta);
 }
 public RawDictionaryBenchmark(string type, int threadCount, int workLoadPerThread, Distribution distribution,
                               double theta, int recordCount = 1000000, int capacity = 10000, int innerCapacity = 100)
 {
     this.threadCount       = threadCount;
     this.workLoadPerThread = workLoadPerThread;
     this.distribution      = distribution;
     this.theta             = theta;
     this.recordCount       = recordCount;
     this.dictionary        = DictionaryFactory.newInstance(type);
     this.dictionary.Init(capacity, innerCapacity, recordCount);
     this.capacity      = capacity;
     this.innerCapacity = innerCapacity;
     this.type          = type;
 }