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