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
ConstructorsConstructorDescriptionRatchetConfig(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 aRatchetConfigrecord class.RatchetConfig(NBCommandParams params) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themax_attemptsrecord component.doubleReturns the value of therate_baserecord component.doubleReturns the value of therate_minsteprecord component.doubleReturns the value of therate_scaledownrecord component.doubleReturns the value of therate_steprecord component.doubleReturns the value of thesample_incrrecord component.intReturns the value of thesample_maxrecord component.intReturns the value of thesample_time_msrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RatchetConfig
-
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 aRatchetConfigrecord class.- Parameters:
sample_time_ms- the value for thesample_time_msrecord componentsample_max- the value for thesample_maxrecord componentsample_incr- the value for thesample_incrrecord componentrate_base- the value for therate_baserecord componentrate_step- the value for therate_steprecord componentrate_minstep- the value for therate_minsteprecord componentrate_scaledown- the value for therate_scaledownrecord componentmax_attempts- the value for themax_attemptsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 thecomparemethod from their corresponding wrapper classes. -
sample_time_ms
public int sample_time_ms()Returns the value of thesample_time_msrecord component.- Returns:
- the value of the
sample_time_msrecord component
-
sample_max
public int sample_max()Returns the value of thesample_maxrecord component.- Returns:
- the value of the
sample_maxrecord component
-
sample_incr
public double sample_incr()Returns the value of thesample_incrrecord component.- Returns:
- the value of the
sample_incrrecord component
-
rate_base
public double rate_base()Returns the value of therate_baserecord component.- Returns:
- the value of the
rate_baserecord component
-
rate_step
public double rate_step()Returns the value of therate_steprecord component.- Returns:
- the value of the
rate_steprecord component
-
rate_minstep
public double rate_minstep()Returns the value of therate_minsteprecord component.- Returns:
- the value of the
rate_minsteprecord component
-
rate_scaledown
public double rate_scaledown()Returns the value of therate_scaledownrecord component.- Returns:
- the value of the
rate_scaledownrecord component
-
max_attempts
public int max_attempts()Returns the value of themax_attemptsrecord component.- Returns:
- the value of the
max_attemptsrecord component
-