Record Class RatchetConfig

java.lang.Object
java.lang.Record
io.nosqlbench.scenarios.simframe.optimizers.planners.ratchet.RatchetConfig

public record RatchetConfig(int sample_time_ms, int sample_max, double sample_incr, double rate_base, double rate_step, double rate_minstep, double rate_scaledown, int max_attempts) extends Record
These search parameters are based on the original findmax algorithm, and should be reduced down to the minimum set needed.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RatchetConfig(int sample_time_ms, int sample_max, double sample_incr, double rate_base, double rate_step, double rate_minstep, double rate_scaledown, int max_attempts)
    Creates an instance of a RatchetConfig record class.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the max_attempts record component.
    double
    Returns the value of the rate_base record component.
    double
    Returns the value of the rate_minstep record component.
    double
    Returns the value of the rate_scaledown record component.
    double
    Returns the value of the rate_step record component.
    double
    Returns the value of the sample_incr record component.
    int
    Returns the value of the sample_max record component.
    int
    Returns the value of the sample_time_ms record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RatchetConfig

      public RatchetConfig(NBCommandParams params)
    • RatchetConfig

      public RatchetConfig(int sample_time_ms, int sample_max, double sample_incr, double rate_base, double rate_step, double rate_minstep, double rate_scaledown, int max_attempts)
      Creates an instance of a RatchetConfig record class.
      Parameters:
      sample_time_ms - the value for the sample_time_ms record component
      sample_max - the value for the sample_max record component
      sample_incr - the value for the sample_incr record component
      rate_base - the value for the rate_base record component
      rate_step - the value for the rate_step record component
      rate_minstep - the value for the rate_minstep record component
      rate_scaledown - the value for the rate_scaledown record component
      max_attempts - the value for the max_attempts record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sample_time_ms

      public int sample_time_ms()
      Returns the value of the sample_time_ms record component.
      Returns:
      the value of the sample_time_ms record component
    • sample_max

      public int sample_max()
      Returns the value of the sample_max record component.
      Returns:
      the value of the sample_max record component
    • sample_incr

      public double sample_incr()
      Returns the value of the sample_incr record component.
      Returns:
      the value of the sample_incr record component
    • rate_base

      public double rate_base()
      Returns the value of the rate_base record component.
      Returns:
      the value of the rate_base record component
    • rate_step

      public double rate_step()
      Returns the value of the rate_step record component.
      Returns:
      the value of the rate_step record component
    • rate_minstep

      public double rate_minstep()
      Returns the value of the rate_minstep record component.
      Returns:
      the value of the rate_minstep record component
    • rate_scaledown

      public double rate_scaledown()
      Returns the value of the rate_scaledown record component.
      Returns:
      the value of the rate_scaledown record component
    • max_attempts

      public int max_attempts()
      Returns the value of the max_attempts record component.
      Returns:
      the value of the max_attempts record component