public class IntStatistics extends Statistics
Constructor and Description |
---|
IntStatistics() |
Modifier and Type | Method and Description |
---|---|
int |
getMax() |
byte[] |
getMaxBytes()
Abstract method to return the max value as a byte array
|
int |
getMin() |
byte[] |
getMinBytes()
Abstract method to return the min value as a byte array
|
void |
initializeStats(int min_value,
int max_value) |
void |
mergeStatisticsMinMax(Statistics stats)
Abstract method to merge this statistics min and max with the values
of the parameter object.
|
void |
setMinMax(int min,
int 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(int value)
updates statistics min and max using the passed value
|
void |
updateStats(int min_value,
int max_value) |
equals, getNumNulls, getStatsBasedOnType, hashCode, incrementNumNulls, incrementNumNulls, isEmpty, markAsNotEmpty, mergeStatistics, setNumNulls, updateStats, updateStats, updateStats, updateStats, updateStats
public void updateStats(int 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 void updateStats(int min_value, int max_value)
public void initializeStats(int min_value, int max_value)
public int getMax()
public int getMin()
public void setMinMax(int min, int max)
Copyright © 2015. All rights reserved.