public class FloatStatistics extends Statistics<Float>
Statistics.Builder| Constructor and Description |
|---|
FloatStatistics()
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(float value) |
int |
compareMinToValue(float value) |
FloatStatistics |
copy() |
Float |
genericGetMax()
Returns the max value in the statistics.
|
Float |
genericGetMin()
Returns the min value in the statistics.
|
float |
getMax() |
byte[] |
getMaxBytes()
Abstract method to return the max value as a byte array
|
float |
getMin() |
byte[] |
getMinBytes()
Abstract method to return the min value as a byte array
|
void |
initializeStats(float min_value,
float 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(float min,
float max) |
void |
setMinMaxFromBytes(byte[] minBytes,
byte[] maxBytes)
Abstract method to set min and max values from byte arrays.
|
void |
updateStats(float value)
updates statistics min and max using the passed value
|
void |
updateStats(float min_value,
float 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 FloatStatistics()
Statistics.createStats(org.apache.parquet.schema.Type) insteadpublic void updateStats(float value)
StatisticsupdateStats in class Statistics<Float>value - value to use to update min and maxpublic void mergeStatisticsMinMax(Statistics stats)
StatisticsmergeStatisticsMinMax in class Statistics<Float>stats - Statistics object to merge withpublic void setMinMaxFromBytes(byte[] minBytes,
byte[] maxBytes)
StatisticssetMinMaxFromBytes in class Statistics<Float>minBytes - byte array to set the min value tomaxBytes - byte array to set the max value topublic byte[] getMaxBytes()
StatisticsgetMaxBytes in class Statistics<Float>public byte[] getMinBytes()
StatisticsgetMinBytes in class Statistics<Float>public boolean isSmallerThan(long size)
StatisticsisSmallerThan in class Statistics<Float>size - a size in bytespublic void updateStats(float min_value,
float max_value)
public void initializeStats(float min_value,
float max_value)
public Float 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<Float>public Float 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<Float>public int compareMinToValue(float value)
public int compareMaxToValue(float value)
public float getMax()
public float getMin()
public void setMinMax(float min,
float max)
public FloatStatistics copy()
copy in class Statistics<Float>Copyright © 2024 The Apache Software Foundation. All rights reserved.