Record Class QueryProfiler.ProfileEntry
java.lang.Object
java.lang.Record
com.loomcache.server.query.QueryProfiler.ProfileEntry
- Enclosing class:
QueryProfiler
-
Constructor Summary
ConstructorsConstructorDescriptionProfileEntry(String stageName, long durationNs, long rowsProcessed) Creates an instance of aProfileEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedurationNsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of therowsProcessedrecord component.Returns the value of thestageNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProfileEntry
Creates an instance of aProfileEntryrecord class.- Parameters:
stageName- the value for thestageNamerecord componentdurationNs- the value for thedurationNsrecord componentrowsProcessed- the value for therowsProcessedrecord 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. -
stageName
Returns the value of thestageNamerecord component.- Returns:
- the value of the
stageNamerecord component
-
durationNs
public long durationNs()Returns the value of thedurationNsrecord component.- Returns:
- the value of the
durationNsrecord component
-
rowsProcessed
public long rowsProcessed()Returns the value of therowsProcessedrecord component.- Returns:
- the value of the
rowsProcessedrecord component
-