Record Class QueryProfiler.QueryProfile
java.lang.Object
java.lang.Record
com.loomcache.server.query.QueryProfiler.QueryProfile
- Enclosing class:
QueryProfiler
public static record QueryProfiler.QueryProfile(String sql, List<QueryProfiler.ProfileEntry> stages, long totalDurationMs, String bottleneck)
extends Record
Complete query profile with stage information and bottleneck identification.
-
Constructor Summary
ConstructorsConstructorDescriptionQueryProfile(String sql, List<QueryProfiler.ProfileEntry> stages, long totalDurationMs, String bottleneck) Creates an instance of aQueryProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebottleneckrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sql()Returns the value of thesqlrecord component.stages()Returns the value of thestagesrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalDurationMsrecord component.
-
Constructor Details
-
QueryProfile
public QueryProfile(String sql, List<QueryProfiler.ProfileEntry> stages, long totalDurationMs, String bottleneck) Creates an instance of aQueryProfilerecord class.- Parameters:
sql- the value for thesqlrecord componentstages- the value for thestagesrecord componenttotalDurationMs- the value for thetotalDurationMsrecord componentbottleneck- the value for thebottleneckrecord 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. -
sql
Returns the value of thesqlrecord component.- Returns:
- the value of the
sqlrecord component
-
stages
Returns the value of thestagesrecord component.- Returns:
- the value of the
stagesrecord component
-
totalDurationMs
public long totalDurationMs()Returns the value of thetotalDurationMsrecord component.- Returns:
- the value of the
totalDurationMsrecord component
-
bottleneck
Returns the value of thebottleneckrecord component.- Returns:
- the value of the
bottleneckrecord component
-