Package com.facebook.LinkBench

Examples of com.facebook.LinkBench.InvertibleShuffler


      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);
      } else  {
View Full Code Here


      logger.debug("Using ProbabilityDistribution class " + className +
                  " for " + kind.toString().toLowerCase());
      ProbabilityDistribution pDist = ClassLoadUtil.newInstance(className,
                                                ProbabilityDistribution.class);
      pDist.init(minid, maxid, props, keyPrefix);
      InvertibleShuffler shuffler = RealDistribution.getShuffler(kind,
                                                       maxid - minid);
      return new ProbAccessDistribution(pDist, shuffler);
    } catch (ClassNotFoundException e) {
      throw new LinkBenchConfigError("Access distribution class " + className
          + " not successfully loaded: " + e.getMessage());
View Full Code Here

TOP

Related Classes of com.facebook.LinkBench.InvertibleShuffler

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.