public class BinaryStatistics extends Statistics<Binary>
Statistics.Builder| Constructor and Description |
|---|
BinaryStatistics()
Deprecated.
will be removed in 2.0.0. Use
Statistics.createStats(org.apache.parquet.schema.Type) instead |
| Modifier and Type | Method and Description |
|---|---|
BinaryStatistics |
copy() |
Binary |
genericGetMax()
Returns the max value in the statistics.
|
Binary |
genericGetMin()
Returns the min value in the statistics.
|
Binary |
getMax()
Deprecated.
use
genericGetMax(), will be removed in 2.0.0 |
byte[] |
getMaxBytes()
Abstract method to return the max value as a byte array
|
Binary |
getMin()
Deprecated.
use
genericGetMin(), will be removed in 2.0.0 |
byte[] |
getMinBytes()
Abstract method to return the min value as a byte array
|
void |
initializeStats(Binary min_value,
Binary max_value)
Deprecated.
use
updateStats(Binary), will be removed in 2.0.0 |
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(Binary min,
Binary max)
Deprecated.
use
updateStats(Binary), will be removed in 2.0.0 |
void |
setMinMaxFromBytes(byte[] minBytes,
byte[] maxBytes)
Sets min and max values, re-uses the byte[] passed in.
|
void |
updateStats(Binary value)
updates statistics min and max using the passed value
|
void |
updateStats(Binary min_value,
Binary max_value)
Deprecated.
use
updateStats(Binary), will be removed in 2.0.0 |
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 BinaryStatistics()
Statistics.createStats(org.apache.parquet.schema.Type) insteadpublic void updateStats(Binary value)
StatisticsupdateStats in class Statistics<Binary>value - value to use to update min and maxpublic void mergeStatisticsMinMax(Statistics stats)
StatisticsmergeStatisticsMinMax in class Statistics<Binary>stats - Statistics object to merge withpublic void setMinMaxFromBytes(byte[] minBytes,
byte[] maxBytes)
setMinMaxFromBytes in class Statistics<Binary>minBytes - byte array to set the min value tomaxBytes - byte array to set the max value topublic byte[] getMaxBytes()
StatisticsgetMaxBytes in class Statistics<Binary>public byte[] getMinBytes()
StatisticsgetMinBytes in class Statistics<Binary>public boolean isSmallerThan(long size)
StatisticsisSmallerThan in class Statistics<Binary>size - a size in bytes@Deprecated public void updateStats(Binary min_value, Binary max_value)
updateStats(Binary), will be removed in 2.0.0min_value - a min binarymax_value - a max binary@Deprecated public void initializeStats(Binary min_value, Binary max_value)
updateStats(Binary), will be removed in 2.0.0min_value - a min binarymax_value - a max binarypublic Binary 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<Binary>public Binary 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<Binary>@Deprecated public Binary getMax()
genericGetMax(), will be removed in 2.0.0@Deprecated public Binary getMin()
genericGetMin(), will be removed in 2.0.0@Deprecated public void setMinMax(Binary min, Binary max)
updateStats(Binary), will be removed in 2.0.0min - a min binarymax - a max binarypublic BinaryStatistics copy()
copy in class Statistics<Binary>Copyright © 2019 The Apache Software Foundation. All rights reserved.