Record Class ColumnStatistics
java.lang.Object
java.lang.Record
io.trino.plugin.hive.metastore.file.ColumnStatistics
@Immutable
public record ColumnStatistics(Optional<ColumnStatistics.IntegerStatistics> integerStatistics, Optional<ColumnStatistics.DoubleStatistics> doubleStatistics, Optional<ColumnStatistics.DecimalStatistics> decimalStatistics, Optional<ColumnStatistics.DateStatistics> dateStatistics, Optional<ColumnStatistics.BooleanStatistics> booleanStatistics, OptionalLong maxValueSizeInBytes, OptionalDouble averageColumnLength, OptionalLong totalSizeInBytes, OptionalLong nullsCount, OptionalLong distinctValuesCount)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionColumnStatistics(Optional<ColumnStatistics.IntegerStatistics> integerStatistics, Optional<ColumnStatistics.DoubleStatistics> doubleStatistics, Optional<ColumnStatistics.DecimalStatistics> decimalStatistics, Optional<ColumnStatistics.DateStatistics> dateStatistics, Optional<ColumnStatistics.BooleanStatistics> booleanStatistics, OptionalLong maxValueSizeInBytes, OptionalDouble averageColumnLength, OptionalLong totalSizeInBytes, OptionalLong nullsCount, OptionalLong distinctValuesCount) Creates an instance of aColumnStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaverageColumnLengthrecord component.Returns the value of thebooleanStatisticsrecord component.Returns the value of thedateStatisticsrecord component.Returns the value of thedecimalStatisticsrecord component.Returns the value of thedistinctValuesCountrecord component.Returns the value of thedoubleStatisticsrecord component.final booleanIndicates whether some other object is "equal to" this one.static ColumnStatisticsfromHiveColumnStatistics(HiveColumnStatistics hiveColumnStatistics) final inthashCode()Returns a hash code value for this object.Returns the value of theintegerStatisticsrecord component.Returns the value of themaxValueSizeInBytesrecord component.Returns the value of thenullsCountrecord component.toHiveColumnStatistics(HiveBasicStatistics basicStatistics) final StringtoString()Returns a string representation of this record class.Returns the value of thetotalSizeInBytesrecord component.
-
Constructor Details
-
ColumnStatistics
public ColumnStatistics(Optional<ColumnStatistics.IntegerStatistics> integerStatistics, Optional<ColumnStatistics.DoubleStatistics> doubleStatistics, Optional<ColumnStatistics.DecimalStatistics> decimalStatistics, Optional<ColumnStatistics.DateStatistics> dateStatistics, Optional<ColumnStatistics.BooleanStatistics> booleanStatistics, OptionalLong maxValueSizeInBytes, OptionalDouble averageColumnLength, OptionalLong totalSizeInBytes, OptionalLong nullsCount, OptionalLong distinctValuesCount) Creates an instance of aColumnStatisticsrecord class.- Parameters:
integerStatistics- the value for theintegerStatisticsrecord componentdoubleStatistics- the value for thedoubleStatisticsrecord componentdecimalStatistics- the value for thedecimalStatisticsrecord componentdateStatistics- the value for thedateStatisticsrecord componentbooleanStatistics- the value for thebooleanStatisticsrecord componentmaxValueSizeInBytes- the value for themaxValueSizeInBytesrecord componentaverageColumnLength- the value for theaverageColumnLengthrecord componenttotalSizeInBytes- the value for thetotalSizeInBytesrecord componentnullsCount- the value for thenullsCountrecord componentdistinctValuesCount- the value for thedistinctValuesCountrecord component
-
-
Method Details
-
fromHiveColumnStatistics
-
toHiveColumnStatistics
-
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). -
integerStatistics
Returns the value of theintegerStatisticsrecord component.- Returns:
- the value of the
integerStatisticsrecord component
-
doubleStatistics
Returns the value of thedoubleStatisticsrecord component.- Returns:
- the value of the
doubleStatisticsrecord component
-
decimalStatistics
Returns the value of thedecimalStatisticsrecord component.- Returns:
- the value of the
decimalStatisticsrecord component
-
dateStatistics
Returns the value of thedateStatisticsrecord component.- Returns:
- the value of the
dateStatisticsrecord component
-
booleanStatistics
Returns the value of thebooleanStatisticsrecord component.- Returns:
- the value of the
booleanStatisticsrecord component
-
maxValueSizeInBytes
Returns the value of themaxValueSizeInBytesrecord component.- Returns:
- the value of the
maxValueSizeInBytesrecord component
-
averageColumnLength
Returns the value of theaverageColumnLengthrecord component.- Returns:
- the value of the
averageColumnLengthrecord component
-
totalSizeInBytes
Returns the value of thetotalSizeInBytesrecord component.- Returns:
- the value of the
totalSizeInBytesrecord component
-
nullsCount
Returns the value of thenullsCountrecord component.- Returns:
- the value of the
nullsCountrecord component
-
distinctValuesCount
Returns the value of thedistinctValuesCountrecord component.- Returns:
- the value of the
distinctValuesCountrecord component
-