Package com.facebook.LinkBench

Examples of com.facebook.LinkBench.RealDistribution


    }

    // real distribution has it own initialization
    if (mode == LinkDistMode.REAL) {
      logger.debug("Using real link distribution");
      RealDistribution realDist = new RealDistribution();
      realDist.init(props, minid1, maxid1, DistributionType.LINKS);
      return new ProbLinkDistribution(realDist);
    } else {
      // Various arithmetic modes
      // an additional parameter for the function
      int nlinks_config = ConfigUtil.getInt(props, Config.NLINKS_CONFIG);
View Full Code Here


    try {
      AccessDistMode mode = AccessDistMode.valueOf(access_func.toUpperCase());

      if (mode == AccessDistMode.REAL) {
        RealDistribution realDist = new RealDistribution();
        realDist.init(props, minid, maxid, kind);
        InvertibleShuffler shuffler = RealDistribution.getShuffler(kind,
                                                    maxid - minid);
        logger.debug("Using real access distribution" +
                     " for " + kind.toString().toLowerCase());
        return new ProbAccessDistribution(realDist, shuffler);
View Full Code Here

TOP

Related Classes of com.facebook.LinkBench.RealDistribution

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.