Record Class QueryStatistics
java.lang.Object
java.lang.Record
codes.grow.packages.cloudwatchlogs.QueryStatistics
- Record Components:
recordsMatched- records that matchedrecordsScanned- records scannedbytesScanned- bytes scanned
public record QueryStatistics(double recordsMatched, double recordsScanned, double bytesScanned)
extends Record
Logs Insights scan statistics (reported by AWS only).
-
Constructor Summary
ConstructorsConstructorDescriptionQueryStatistics(double recordsMatched, double recordsScanned, double bytesScanned) Creates an instance of aQueryStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thebytesScannedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of therecordsMatchedrecord component.doubleReturns the value of therecordsScannedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryStatistics
public QueryStatistics(double recordsMatched, double recordsScanned, double bytesScanned) Creates an instance of aQueryStatisticsrecord class.- Parameters:
recordsMatched- the value for therecordsMatchedrecord componentrecordsScanned- the value for therecordsScannedrecord componentbytesScanned- the value for thebytesScannedrecord component
-
-
Method Details
-
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. -
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. -
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 '=='. -
recordsMatched
public double recordsMatched()Returns the value of therecordsMatchedrecord component.- Returns:
- the value of the
recordsMatchedrecord component
-
recordsScanned
public double recordsScanned()Returns the value of therecordsScannedrecord component.- Returns:
- the value of the
recordsScannedrecord component
-
bytesScanned
public double bytesScanned()Returns the value of thebytesScannedrecord component.- Returns:
- the value of the
bytesScannedrecord component
-