Package io.trino.tests.product.utils
Record Class CachingTestUtils.CacheStats
java.lang.Object
java.lang.Record
io.trino.tests.product.utils.CachingTestUtils.CacheStats
- Enclosing class:
CachingTestUtils
public static record CachingTestUtils.CacheStats(double cacheReads, double externalReads, long cacheSpaceUsed)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCacheStats(double cacheReads, double externalReads, long cacheSpaceUsed) Creates an instance of aCacheStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thecacheReadsrecord component.longReturns the value of thecacheSpaceUsedrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of theexternalReadsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CacheStats
public CacheStats(double cacheReads, double externalReads, long cacheSpaceUsed) Creates an instance of aCacheStatsrecord class.- Parameters:
cacheReads- the value for thecacheReadsrecord componentexternalReads- the value for theexternalReadsrecord componentcacheSpaceUsed- the value for thecacheSpaceUsedrecord 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 '=='. -
cacheReads
public double cacheReads()Returns the value of thecacheReadsrecord component.- Returns:
- the value of the
cacheReadsrecord component
-
externalReads
public double externalReads()Returns the value of theexternalReadsrecord component.- Returns:
- the value of the
externalReadsrecord component
-
cacheSpaceUsed
public long cacheSpaceUsed()Returns the value of thecacheSpaceUsedrecord component.- Returns:
- the value of the
cacheSpaceUsedrecord component
-