Class Bounds

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

public class Bounds
extends java.lang.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 Summary

    Constructors 
    Constructor Description
    Bounds​(long startingValue, int levelsPerMagnitude)  
  • Method Summary

    Modifier and Type Method Description
    long getNextValue()  
    long getValue()  
    Bounds setValue​(long value)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 java.lang.String toString()
      Overrides:
      toString in class java.lang.Object