Package io.trino.orc.metadata.statistics
Class DecimalStatistics
- java.lang.Object
-
- io.trino.orc.metadata.statistics.DecimalStatistics
-
- All Implemented Interfaces:
RangeStatistics<BigDecimal>,StatisticsHasher.Hashable
public class DecimalStatistics extends Object implements RangeStatistics<BigDecimal>, StatisticsHasher.Hashable
-
-
Field Summary
Fields Modifier and Type Field Description static longDECIMAL_VALUE_BYTES_OVERHEAD
-
Constructor Summary
Constructors Constructor Description DecimalStatistics(BigDecimal minimum, BigDecimal maximum, long decimalSizeInBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHash(StatisticsHasher hasher)booleanequals(Object o)BigDecimalgetMax()BigDecimalgetMin()longgetRetainedSizeInBytes()inthashCode()StringtoString()
-
-
-
Field Detail
-
DECIMAL_VALUE_BYTES_OVERHEAD
public static final long DECIMAL_VALUE_BYTES_OVERHEAD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DecimalStatistics
public DecimalStatistics(BigDecimal minimum, BigDecimal maximum, long decimalSizeInBytes)
-
-
Method Detail
-
getMin
public BigDecimal getMin()
- Specified by:
getMinin interfaceRangeStatistics<BigDecimal>
-
getMax
public BigDecimal getMax()
- Specified by:
getMaxin interfaceRangeStatistics<BigDecimal>
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()
- Specified by:
getRetainedSizeInBytesin interfaceRangeStatistics<BigDecimal>
-
addHash
public void addHash(StatisticsHasher hasher)
- Specified by:
addHashin interfaceStatisticsHasher.Hashable
-
-