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