Package com.yahoo.ycsb.generator

Examples of com.yahoo.ycsb.generator.HistogramGenerator


      fieldlengthgenerator = new UniformIntegerGenerator(1, fieldlength);
    } else if(fieldlengthdistribution.compareTo("zipfian") == 0) {
      fieldlengthgenerator = new ZipfianGenerator(1, fieldlength);
    } else if(fieldlengthdistribution.compareTo("histogram") == 0) {
      try {
        fieldlengthgenerator = new HistogramGenerator(fieldlengthhistogram);
      } catch(IOException e) {
        throw new WorkloadException("Couldn't read field length histogram file: "+fieldlengthhistogram, e);
      }
    } else {
      throw new WorkloadException("Unknown field length distribution \""+fieldlengthdistribution+"\"");
View Full Code Here

TOP

Related Classes of com.yahoo.ycsb.generator.HistogramGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.