Record Class WalWriterStats
java.lang.Object
java.lang.Record
com.loomcache.server.persistence.WalWriterStats
- Record Components:
totalWrites- Total number of write operationstotalBytes- Total uncompressed bytes writtentotalCompressedBytes- Total bytes after compressioncompressionRatio- 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 Summary
ConstructorsConstructorDescriptionWalWriterStats(long totalWrites, long totalBytes, long totalCompressedBytes, double compressionRatio, long checkpointCount) Creates an instance of aWalWriterStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecheckpointCountrecord component.doubleReturns the value of thecompressionRatiorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalBytesrecord component.longReturns the value of thetotalCompressedBytesrecord component.longReturns the value of thetotalWritesrecord component.
-
Constructor Details
-
WalWriterStats
public WalWriterStats(long totalWrites, long totalBytes, long totalCompressedBytes, double compressionRatio, long checkpointCount) Creates an instance of aWalWriterStatsrecord class.- Parameters:
totalWrites- the value for thetotalWritesrecord componenttotalBytes- the value for thetotalBytesrecord componenttotalCompressedBytes- the value for thetotalCompressedBytesrecord componentcompressionRatio- the value for thecompressionRatiorecord componentcheckpointCount- the value for thecheckpointCountrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
totalWrites
public long totalWrites()Returns the value of thetotalWritesrecord component.- Returns:
- the value of the
totalWritesrecord component
-
totalBytes
public long totalBytes()Returns the value of thetotalBytesrecord component.- Returns:
- the value of the
totalBytesrecord component
-
totalCompressedBytes
public long totalCompressedBytes()Returns the value of thetotalCompressedBytesrecord component.- Returns:
- the value of the
totalCompressedBytesrecord component
-
compressionRatio
public double compressionRatio()Returns the value of thecompressionRatiorecord component.- Returns:
- the value of the
compressionRatiorecord component
-
checkpointCount
public long checkpointCount()Returns the value of thecheckpointCountrecord component.- Returns:
- the value of the
checkpointCountrecord component
-