Record Class SlowQueryLog.SlowQueryEntry

java.lang.Object
java.lang.Record
com.loomcache.server.query.SlowQueryLog.SlowQueryEntry
Enclosing class:
SlowQueryLog

public static record SlowQueryLog.SlowQueryEntry(String sql, long executionTimeMs, long rowsScanned, long rowsReturned, long timestamp, String clientId, String mapName) extends Record
Record representing a single slow query log entry.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SlowQueryEntry(String sql, long executionTimeMs, long rowsScanned, long rowsReturned, long timestamp, String clientId, String mapName)
    Creates an instance of a SlowQueryEntry record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the clientId record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the executionTimeMs record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the mapName record component.
    long
    Returns the value of the rowsReturned record component.
    long
    Returns the value of the rowsScanned record component.
    sql()
    Returns the value of the sql record component.
    long
    Returns the value of the timestamp record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SlowQueryEntry

      public SlowQueryEntry(String sql, long executionTimeMs, long rowsScanned, long rowsReturned, long timestamp, String clientId, String mapName)
      Creates an instance of a SlowQueryEntry record class.
      Parameters:
      sql - the value for the sql record component
      executionTimeMs - the value for the executionTimeMs record component
      rowsScanned - the value for the rowsScanned record component
      rowsReturned - the value for the rowsReturned record component
      timestamp - the value for the timestamp record component
      clientId - the value for the clientId record component
      mapName - the value for the mapName record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sql

      public String sql()
      Returns the value of the sql record component.
      Returns:
      the value of the sql record component
    • executionTimeMs

      public long executionTimeMs()
      Returns the value of the executionTimeMs record component.
      Returns:
      the value of the executionTimeMs record component
    • rowsScanned

      public long rowsScanned()
      Returns the value of the rowsScanned record component.
      Returns:
      the value of the rowsScanned record component
    • rowsReturned

      public long rowsReturned()
      Returns the value of the rowsReturned record component.
      Returns:
      the value of the rowsReturned record component
    • timestamp

      public long timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • clientId

      public String clientId()
      Returns the value of the clientId record component.
      Returns:
      the value of the clientId record component
    • mapName

      public String mapName()
      Returns the value of the mapName record component.
      Returns:
      the value of the mapName record component