Record Class FindmaxConfig

java.lang.Object
java.lang.Record
io.nosqlbench.scenarios.simframe.optimizers.planners.findmax.FindmaxConfig

public record FindmaxConfig(int sample_time_ms, int sample_max, double sample_incr, double rate_base, double rate_step, double rate_incr, int average_of, long min_settling_ms) 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
    FindmaxConfig(int sample_time_ms, int sample_max, double sample_incr, double rate_base, double rate_step, double rate_incr, int average_of, long min_settling_ms)
    Creates an instance of a FindmaxConfig record class.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the average_of record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the min_settling_ms record component.
    double
    Returns the value of the rate_base record component.
    double
    Returns the value of the rate_incr 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

    • FindmaxConfig

      public FindmaxConfig(NBCommandParams params)
    • FindmaxConfig

      public FindmaxConfig(int sample_time_ms, int sample_max, double sample_incr, double rate_base, double rate_step, double rate_incr, int average_of, long min_settling_ms)
      Creates an instance of a FindmaxConfig 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_incr - the value for the rate_incr record component
      average_of - the value for the average_of record component
      min_settling_ms - the value for the min_settling_ms 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_incr

      public double rate_incr()
      Returns the value of the rate_incr record component.
      Returns:
      the value of the rate_incr record component
    • average_of

      public int average_of()
      Returns the value of the average_of record component.
      Returns:
      the value of the average_of record component
    • min_settling_ms

      public long min_settling_ms()
      Returns the value of the min_settling_ms record component.
      Returns:
      the value of the min_settling_ms record component