public class DoubleStatistics extends Statistics<Double>
Statistics.Builder| Constructor and Description |
|---|
DoubleStatistics()
Deprecated.
will be removed in 2.0.0. Use
Statistics.createStats(org.apache.parquet.schema.Type) instead |
| Modifier and Type | Method and Description |
|---|---|
int |
compareMaxToValue(double value) |
int |
compareMinToValue(double value) |
DoubleStatistics |
copy() |
Double |
genericGetMax()
Returns the max value in the statistics.
|
Double |
genericGetMin()
Returns the min value in the statistics.
|
double |
getMax() |
byte[] |
getMaxBytes()
Abstract method to return the max value as a byte array
|
double |
getMin() |
byte[] |
getMinBytes()
Abstract method to return the min value as a byte array
|
void |
initializeStats(double min_value,
double max_value) |
boolean |
isSmallerThan(long size)
Abstract method to return whether the min and max values fit in the given
size.
|
void |
mergeStatisticsMinMax(Statistics stats)
Abstract method to merge this statistics min and max with the values
of the parameter object.
|
void |
setMinMax(double min,
double max) |
void |
setMinMaxFromBytes(byte[] minBytes,
byte[] maxBytes)
Abstract method to set min and max values from byte arrays.
|
void |
updateStats(double value)
updates statistics min and max using the passed value
|
void |
updateStats(double min_value,
double max_value) |
comparator, compareMaxToValue, compareMinToValue, createStats, equals, getBuilderForReading, getNumNulls, getStatsBasedOnType, hashCode, hasNonNullValue, incrementNumNulls, incrementNumNulls, isEmpty, isNumNullsSet, markAsNotEmpty, maxAsString, mergeStatistics, minAsString, noopStats, setNumNulls, toString, type, updateStats, updateStats, updateStats, updateStats, updateStats@Deprecated public DoubleStatistics()
Statistics.createStats(org.apache.parquet.schema.Type) insteadpublic void updateStats(double value)
StatisticsupdateStats in class Statistics<Double>value - value to use to update min and maxpublic void mergeStatisticsMinMax(Statistics stats)
StatisticsmergeStatisticsMinMax in class Statistics<Double>stats - Statistics object to merge withpublic void setMinMaxFromBytes(byte[] minBytes,
byte[] maxBytes)
StatisticssetMinMaxFromBytes in class Statistics<Double>minBytes - byte array to set the min value tomaxBytes - byte array to set the max value topublic byte[] getMaxBytes()
StatisticsgetMaxBytes in class Statistics<Double>public byte[] getMinBytes()
StatisticsgetMinBytes in class Statistics<Double>public boolean isSmallerThan(long size)
StatisticsisSmallerThan in class Statistics<Double>size - a size in bytespublic void updateStats(double min_value,
double max_value)
public void initializeStats(double min_value,
double max_value)
public Double genericGetMin()
StatisticsComparable.compareTo(Object) might not be the proper one. For example, UINT_32 requires unsigned comparison instead of the
natural signed one. Use Statistics.compareMinToValue(Comparable) or the comparator returned by Statistics.comparator() to
always get the proper ordering.genericGetMin in class Statistics<Double>public Double genericGetMax()
StatisticsComparable.compareTo(Object) might not be the proper one. For example, UINT_32 requires unsigned comparison instead of the
natural signed one. Use Statistics.compareMaxToValue(Comparable) or the comparator returned by Statistics.comparator() to
always get the proper ordering.genericGetMax in class Statistics<Double>public int compareMinToValue(double value)
public int compareMaxToValue(double value)
public double getMax()
public double getMin()
public void setMinMax(double min,
double max)
public DoubleStatistics copy()
copy in class Statistics<Double>Copyright © 2024 The Apache Software Foundation. All rights reserved.