Record Class RatchetFrameParams
java.lang.Object
java.lang.Record
io.nosqlbench.scenarios.simframe.optimizers.planners.ratchet.RatchetFrameParams
-
Constructor Summary
ConstructorsConstructorDescriptionRatchetFrameParams(double rate, int attempt, double step_size, String description) Creates an instance of aRatchetFrameParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublerate()Returns the value of theraterecord component.doubleReturns the value of thestep_sizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RatchetFrameParams
Creates an instance of aRatchetFrameParamsrecord class.- Parameters:
rate- the value for theraterecord componentattempt- the value for theattemptrecord componentstep_size- the value for thestep_sizerecord componentdescription- the value for thedescriptionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
rate
public double rate()Returns the value of theraterecord component.- Returns:
- the value of the
raterecord component
-
attempt
public int attempt()Returns the value of theattemptrecord component.- Returns:
- the value of the
attemptrecord component
-
step_size
public double step_size()Returns the value of thestep_sizerecord component.- Returns:
- the value of the
step_sizerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-