Record Class ColumnStatistics.BooleanStatistics
java.lang.Object
java.lang.Record
io.trino.plugin.hive.metastore.file.ColumnStatistics.BooleanStatistics
- Enclosing class:
ColumnStatistics
public static record ColumnStatistics.BooleanStatistics(OptionalLong trueCount, OptionalLong falseCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanStatistics(OptionalLong trueCount, OptionalLong falseCount) Creates an instance of aBooleanStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefalseCountrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetrueCountrecord component.
-
Constructor Details
-
BooleanStatistics
Creates an instance of aBooleanStatisticsrecord class.- Parameters:
trueCount- the value for thetrueCountrecord componentfalseCount- the value for thefalseCountrecord 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 withObjects::equals(Object,Object). -
trueCount
Returns the value of thetrueCountrecord component.- Returns:
- the value of the
trueCountrecord component
-
falseCount
Returns the value of thefalseCountrecord component.- Returns:
- the value of the
falseCountrecord component
-