public class IntStatistics extends Statistics<Integer>
Statistics.Builder| Constructor and Description |
|---|
IntStatistics()
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(int value) |
int |
compareMinToValue(int value) |
IntStatistics |
copy() |
Integer |
genericGetMax()
Returns the max value in the statistics.
|
Integer |
genericGetMin()
Returns the min value in the statistics.
|
int |
getMax() |
byte[] |
getMaxBytes()
Abstract method to return the max value as a byte array
|
int |
getMin() |
byte[] |
getMinBytes()
Abstract method to return the min value as a byte array
|
void |
initializeStats(int min_value,
int 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(int min,
int max) |
void |
setMinMaxFromBytes(byte[] minBytes,
byte[] maxBytes)
Abstract method to set min and max values from byte arrays.
|
void |
updateStats(int value)
updates statistics min and max using the passed value
|
void |
updateStats(int min_value,
int max_value) |
comparator, compareMaxToValue, compareMinToValue, createStats, equals, getBuilderForReading, getNumNulls, getStatsBasedOnType, hashCode, hasNonNullValue, incrementNumNulls, incrementNumNulls, isEmpty, isNumNullsSet, markAsNotEmpty, maxAsString, mergeStatistics, minAsString, setNumNulls, toString, type, updateStats, updateStats, updateStats, updateStats, updateStats@Deprecated public IntStatistics()
Statistics.createStats(org.apache.parquet.schema.Type) insteadpublic void updateStats(int value)
StatisticsupdateStats in class Statistics<Integer>value - value to use to update min and maxpublic void mergeStatisticsMinMax(Statistics stats)
StatisticsmergeStatisticsMinMax in class Statistics<Integer>stats - Statistics object to merge withpublic void setMinMaxFromBytes(byte[] minBytes,
byte[] maxBytes)
StatisticssetMinMaxFromBytes in class Statistics<Integer>minBytes - byte array to set the min value tomaxBytes - byte array to set the max value topublic byte[] getMaxBytes()
StatisticsgetMaxBytes in class Statistics<Integer>public byte[] getMinBytes()
StatisticsgetMinBytes in class Statistics<Integer>public boolean isSmallerThan(long size)
StatisticsisSmallerThan in class Statistics<Integer>size - a size in bytespublic void updateStats(int min_value,
int max_value)
public void initializeStats(int min_value,
int max_value)
public Integer 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<Integer>public Integer 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<Integer>public int compareMinToValue(int value)
public int compareMaxToValue(int value)
public int getMax()
public int getMin()
public void setMinMax(int min,
int max)
public IntStatistics copy()
copy in class Statistics<Integer>Copyright © 2023 The Apache Software Foundation. All rights reserved.