Record Class SchemaTypes.IndexStatistics

java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.SchemaTypes.IndexStatistics
Enclosing class:
SchemaTypes

public static record SchemaTypes.IndexStatistics(String indexName, String tableName, long scans, long tuplesRead, long tuplesFetched, long sizeBytes, String sizeFormatted, Instant lastUsed, Boolean bloated, Double bloatPercent) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    IndexStatistics(String indexName, String tableName, long scans, long tuplesRead, long tuplesFetched, long sizeBytes, String sizeFormatted, Instant lastUsed, Boolean bloated, Double bloatPercent)
    Creates an instance of a IndexStatistics record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the bloated record component.
    Returns the value of the bloatPercent record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the indexName record component.
    Returns the value of the lastUsed record component.
    long
    Returns the value of the scans record component.
    long
    Returns the value of the sizeBytes record component.
    Returns the value of the sizeFormatted record component.
    Returns the value of the tableName record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the tuplesFetched record component.
    long
    Returns the value of the tuplesRead record component.

    Methods inherited from class java.lang.Object

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

    • IndexStatistics

      public IndexStatistics(String indexName, String tableName, long scans, long tuplesRead, long tuplesFetched, long sizeBytes, String sizeFormatted, Instant lastUsed, Boolean bloated, Double bloatPercent)
      Creates an instance of a IndexStatistics record class.
      Parameters:
      indexName - the value for the indexName record component
      tableName - the value for the tableName record component
      scans - the value for the scans record component
      tuplesRead - the value for the tuplesRead record component
      tuplesFetched - the value for the tuplesFetched record component
      sizeBytes - the value for the sizeBytes record component
      sizeFormatted - the value for the sizeFormatted record component
      lastUsed - the value for the lastUsed record component
      bloated - the value for the bloated record component
      bloatPercent - the value for the bloatPercent 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 '=='.
      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.
    • indexName

      public String indexName()
      Returns the value of the indexName record component.
      Returns:
      the value of the indexName record component
    • tableName

      public String tableName()
      Returns the value of the tableName record component.
      Returns:
      the value of the tableName record component
    • scans

      public long scans()
      Returns the value of the scans record component.
      Returns:
      the value of the scans record component
    • tuplesRead

      public long tuplesRead()
      Returns the value of the tuplesRead record component.
      Returns:
      the value of the tuplesRead record component
    • tuplesFetched

      public long tuplesFetched()
      Returns the value of the tuplesFetched record component.
      Returns:
      the value of the tuplesFetched record component
    • sizeBytes

      public long sizeBytes()
      Returns the value of the sizeBytes record component.
      Returns:
      the value of the sizeBytes record component
    • sizeFormatted

      public String sizeFormatted()
      Returns the value of the sizeFormatted record component.
      Returns:
      the value of the sizeFormatted record component
    • lastUsed

      public Instant lastUsed()
      Returns the value of the lastUsed record component.
      Returns:
      the value of the lastUsed record component
    • bloated

      public Boolean bloated()
      Returns the value of the bloated record component.
      Returns:
      the value of the bloated record component
    • bloatPercent

      public Double bloatPercent()
      Returns the value of the bloatPercent record component.
      Returns:
      the value of the bloatPercent record component