Record Class Statistics
java.lang.Object
java.lang.Record
dev.hardwood.metadata.Statistics
- Record Components:
minValue- minimum value encoded as raw bytes (little-endian), ornullif absentmaxValue- maximum value encoded as raw bytes (little-endian), ornullif absentnullCount- number of null values in the column chunk, ornullif absentdistinctCount- number of distinct values in the column chunk, ornullif absent
public record Statistics(byte[] minValue, byte[] maxValue, Long nullCount, Long distinctCount, boolean isMinMaxDeprecated)
extends Record
Column chunk statistics for min/max values, null count, and distinct count.
Used for predicate push-down: row groups whose statistics prove that no rows can match a filter predicate are skipped entirely.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatistics(byte[] minValue, byte[] maxValue, Long nullCount, Long distinctCount, boolean isMinMaxDeprecated) Creates an instance of aStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedistinctCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisMinMaxDeprecatedrecord component.byte[]maxValue()Returns the value of themaxValuerecord component.byte[]minValue()Returns the value of theminValuerecord component.Returns the value of thenullCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Statistics
public Statistics(byte[] minValue, byte[] maxValue, Long nullCount, Long distinctCount, boolean isMinMaxDeprecated) Creates an instance of aStatisticsrecord class.- Parameters:
minValue- the value for theminValuerecord componentmaxValue- the value for themaxValuerecord componentnullCount- the value for thenullCountrecord componentdistinctCount- the value for thedistinctCountrecord componentisMinMaxDeprecated- the value for theisMinMaxDeprecatedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
minValue
-
maxValue
-
nullCount
-
distinctCount
Returns the value of thedistinctCountrecord component.- Returns:
- the value of the
distinctCountrecord component
-
isMinMaxDeprecated
public boolean isMinMaxDeprecated()Returns the value of theisMinMaxDeprecatedrecord component.- Returns:
- the value of the
isMinMaxDeprecatedrecord component
-