Record Class WalWriterStats

java.lang.Object
java.lang.Record
com.loomcache.server.persistence.WalWriterStats
Record Components:
totalWrites - Total number of write operations
totalBytes - Total uncompressed bytes written
totalCompressedBytes - Total bytes after compression
compressionRatio - Ratio of compressed to uncompressed bytes (0.0 to 1.0)
checkpointCount - Total number of checkpoints

public record WalWriterStats(long totalWrites, long totalBytes, long totalCompressedBytes, double compressionRatio, long checkpointCount) extends Record
Statistics for compression and batch operations.
  • Constructor Details

    • WalWriterStats

      public WalWriterStats(long totalWrites, long totalBytes, long totalCompressedBytes, double compressionRatio, long checkpointCount)
      Creates an instance of a WalWriterStats record class.
      Parameters:
      totalWrites - the value for the totalWrites record component
      totalBytes - the value for the totalBytes record component
      totalCompressedBytes - the value for the totalCompressedBytes record component
      compressionRatio - the value for the compressionRatio record component
      checkpointCount - the value for the checkpointCount 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. All components in this record class 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.
    • totalWrites

      public long totalWrites()
      Returns the value of the totalWrites record component.
      Returns:
      the value of the totalWrites record component
    • totalBytes

      public long totalBytes()
      Returns the value of the totalBytes record component.
      Returns:
      the value of the totalBytes record component
    • totalCompressedBytes

      public long totalCompressedBytes()
      Returns the value of the totalCompressedBytes record component.
      Returns:
      the value of the totalCompressedBytes record component
    • compressionRatio

      public double compressionRatio()
      Returns the value of the compressionRatio record component.
      Returns:
      the value of the compressionRatio record component
    • checkpointCount

      public long checkpointCount()
      Returns the value of the checkpointCount record component.
      Returns:
      the value of the checkpointCount record component