Class Bounds

java.lang.Object
io.nosqlbench.nb.api.testutils.Bounds

public class Bounds extends Object
Easily step from one value to the next according to a modified logarithmic sequence that makes it easy to pick useful testing boundaries. With levels per magnitude at 1, the progression goes in powers of 10. With any higher value than 1, each magnitude is divided into equal parts. For example, starting at 10 with 2 levels per magnitude, you get 50, 100, 500, 1000, 5000, and so on when you ask for the next higher bound.
  • Constructor Details

    • Bounds

      public Bounds(long startingValue, int levelsPerMagnitude)
  • Method Details

    • setValue

      public Bounds setValue(long value)
    • getValue

      public long getValue()
    • getNextValue

      public long getNextValue()
    • toString

      public String toString()
      Overrides:
      toString in class Object