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