Package com.yahoo.ycsb.generator

Examples of com.yahoo.ycsb.generator.IntegerGenerator.mean()


       p.getProperty(Client.INSERT_COUNT_PROPERTY) != null ||
       p.getProperty(Client.OPERATION_COUNT_PROPERTY) != null) {
      System.err.println("Warning: record, insert or operation count was set prior to initting ConstantOccupancyWorkload.  Overriding old values.");
    }
    IntegerGenerator g = CoreWorkload.getFieldLengthGenerator(p);
    double fieldsize = g.mean();
    int fieldcount = Integer.parseInt(p.getProperty(FIELD_COUNT_PROPERTY, FIELD_COUNT_PROPERTY_DEFAULT));

    object_count = (long)(occupancy * ((double)disksize / (fieldsize * (double)fieldcount)));
                if(object_count == 0) {
                    throw new IllegalStateException("Object count was zero.  Perhaps disksize is too low?");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.