public class BinaryStatistics extends Statistics
Constructor and Description |
---|
BinaryStatistics() |
Modifier and Type | Method and Description |
---|---|
Binary |
getMax() |
byte[] |
getMaxBytes()
Abstract method to return the max value as a byte array
|
Binary |
getMin() |
byte[] |
getMinBytes()
Abstract method to return the min value as a byte array
|
void |
initializeStats(Binary min_value,
Binary max_value) |
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) |
void |
setMinMaxFromBytes(byte[] minBytes,
byte[] maxBytes)
Abstract method to set min and max values from byte arrays.
|
String |
toString()
toString() to display min, max, num_nulls in a string
|
void |
updateStats(Binary value)
updates statistics min and max using the passed value
|
void |
updateStats(Binary min_value,
Binary max_value) |
equals, getNumNulls, getStatsBasedOnType, hashCode, incrementNumNulls, incrementNumNulls, isEmpty, markAsNotEmpty, mergeStatistics, setNumNulls, updateStats, updateStats, updateStats, updateStats, updateStats
public void updateStats(Binary value)
Statistics
updateStats
in class Statistics
value
- value to use to update min and maxpublic void mergeStatisticsMinMax(Statistics stats)
Statistics
mergeStatisticsMinMax
in class Statistics
stats
- Statistics object to merge withpublic void setMinMaxFromBytes(byte[] minBytes, byte[] maxBytes)
Statistics
setMinMaxFromBytes
in class Statistics
minBytes
- byte array to set the min value tomaxBytes
- byte array to set the max value topublic byte[] getMaxBytes()
Statistics
getMaxBytes
in class Statistics
public byte[] getMinBytes()
Statistics
getMinBytes
in class Statistics
public String toString()
Statistics
toString
in class Statistics
public Binary getMax()
public Binary getMin()
Copyright © 2015. All rights reserved.