Record Class SlowQueryLog.SlowQueryEntry
java.lang.Object
java.lang.Record
com.loomcache.server.query.SlowQueryLog.SlowQueryEntry
- Enclosing class:
SlowQueryLog
-
Constructor Summary
ConstructorsConstructorDescriptionSlowQueryEntry(String sql, long executionTimeMs, long rowsScanned, long rowsReturned, long timestamp, String clientId, String mapName) Creates an instance of aSlowQueryEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclientId()Returns the value of theclientIdrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexecutionTimeMsrecord component.final inthashCode()Returns a hash code value for this object.mapName()Returns the value of themapNamerecord component.longReturns the value of therowsReturnedrecord component.longReturns the value of therowsScannedrecord component.sql()Returns the value of thesqlrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SlowQueryEntry
public SlowQueryEntry(String sql, long executionTimeMs, long rowsScanned, long rowsReturned, long timestamp, String clientId, String mapName) Creates an instance of aSlowQueryEntryrecord class.- Parameters:
sql- the value for thesqlrecord componentexecutionTimeMs- the value for theexecutionTimeMsrecord componentrowsScanned- the value for therowsScannedrecord componentrowsReturned- the value for therowsReturnedrecord componenttimestamp- the value for thetimestamprecord componentclientId- the value for theclientIdrecord componentmapName- the value for themapNamerecord 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
-
executionTimeMs
public long executionTimeMs()Returns the value of theexecutionTimeMsrecord component.- Returns:
- the value of the
executionTimeMsrecord component
-
rowsScanned
public long rowsScanned()Returns the value of therowsScannedrecord component.- Returns:
- the value of the
rowsScannedrecord component
-
rowsReturned
public long rowsReturned()Returns the value of therowsReturnedrecord component.- Returns:
- the value of the
rowsReturnedrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
clientId
Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
mapName
Returns the value of themapNamerecord component.- Returns:
- the value of the
mapNamerecord component
-