public class IntegerStatistics extends Statistics<Integer>
isEmpty| Constructor and Description |
|---|
IntegerStatistics() |
| Modifier and Type | Method and Description |
|---|---|
long |
calculateRamSize() |
void |
deserialize(ByteBuffer byteBuffer) |
void |
deserialize(InputStream inputStream)
read data from the inputStream.
|
boolean |
equals(Object o) |
Integer |
getFirstValue() |
Integer |
getLastValue() |
Integer |
getMaxValue() |
Integer |
getMinValue() |
int |
getStatsSize()
The output of this method should be identical to the method "serializeStats(OutputStream
outputStream)"
|
double |
getSumDoubleValue() |
long |
getSumLongValue() |
TSDataType |
getType() |
int |
hashCode() |
void |
initializeStats(int min,
int max,
int first,
int last,
long sum) |
protected void |
mergeStatisticsValue(Statistics<Integer> stats) |
int |
serializeStats(OutputStream outputStream) |
String |
toString() |
deserialize, deserialize, getCount, getEndTime, getSerializedSize, getSizeByType, getStartTime, getStatsByType, isEmpty, mergeStatistics, serialize, setCount, setEmpty, setEndTime, setStartTime, update, update, update, update, update, update, update, update, update, update, update, update, update, update, updateStatspublic TSDataType getType()
getType in class Statistics<Integer>public int getStatsSize()
getStatsSize in class Statistics<Integer>public void initializeStats(int min,
int max,
int first,
int last,
long sum)
public long calculateRamSize()
calculateRamSize in class Statistics<Integer>public Integer getMinValue()
getMinValue in class Statistics<Integer>public Integer getMaxValue()
getMaxValue in class Statistics<Integer>public Integer getFirstValue()
getFirstValue in class Statistics<Integer>public Integer getLastValue()
getLastValue in class Statistics<Integer>public double getSumDoubleValue()
getSumDoubleValue in class Statistics<Integer>public long getSumLongValue()
getSumLongValue in class Statistics<Integer>protected void mergeStatisticsValue(Statistics<Integer> stats)
mergeStatisticsValue in class Statistics<Integer>public int serializeStats(OutputStream outputStream) throws IOException
IOExceptionpublic void deserialize(InputStream inputStream) throws IOException
Statisticsdeserialize in class Statistics<Integer>IOExceptionpublic void deserialize(ByteBuffer byteBuffer)
deserialize in class Statistics<Integer>public boolean equals(Object o)
equals in class Statistics<Integer>public int hashCode()
hashCode in class Statistics<Integer>public String toString()
toString in class Statistics<Integer>Copyright © 2022 The Apache Software Foundation. All rights reserved.