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, updateStatspublic void updateStats(Binary value)
StatisticsupdateStats in class Statisticsvalue - value to use to update min and maxpublic void mergeStatisticsMinMax(Statistics stats)
StatisticsmergeStatisticsMinMax in class Statisticsstats - Statistics object to merge withpublic void setMinMaxFromBytes(byte[] minBytes,
byte[] maxBytes)
StatisticssetMinMaxFromBytes in class StatisticsminBytes - byte array to set the min value tomaxBytes - byte array to set the max value topublic byte[] getMaxBytes()
StatisticsgetMaxBytes in class Statisticspublic byte[] getMinBytes()
StatisticsgetMinBytes in class Statisticspublic String toString()
StatisticstoString in class Statisticspublic Binary getMax()
public Binary getMin()
Copyright © 2015. All rights reserved.