public class BooleanStatistics extends Statistics<Boolean>
isEmpty| Constructor and Description |
|---|
BooleanStatistics() |
| 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) |
Boolean |
getFirstValue() |
Boolean |
getLastValue() |
Boolean |
getMaxValue() |
Boolean |
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(boolean firstValue,
boolean lastValue,
long sum)
initialize boolean Statistics.
|
protected void |
mergeStatisticsValue(Statistics<Boolean> 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<Boolean>public int getStatsSize()
getStatsSize in class Statistics<Boolean>public void initializeStats(boolean firstValue,
boolean lastValue,
long sum)
firstValue - first boolean valuelastValue - last boolean valuepublic long calculateRamSize()
calculateRamSize in class Statistics<Boolean>public Boolean getMinValue()
getMinValue in class Statistics<Boolean>public Boolean getMaxValue()
getMaxValue in class Statistics<Boolean>public Boolean getFirstValue()
getFirstValue in class Statistics<Boolean>public Boolean getLastValue()
getLastValue in class Statistics<Boolean>public double getSumDoubleValue()
getSumDoubleValue in class Statistics<Boolean>public long getSumLongValue()
getSumLongValue in class Statistics<Boolean>protected void mergeStatisticsValue(Statistics<Boolean> stats)
mergeStatisticsValue in class Statistics<Boolean>public int serializeStats(OutputStream outputStream) throws IOException
IOExceptionpublic void deserialize(InputStream inputStream) throws IOException
Statisticsdeserialize in class Statistics<Boolean>IOExceptionpublic void deserialize(ByteBuffer byteBuffer)
deserialize in class Statistics<Boolean>public boolean equals(Object o)
equals in class Statistics<Boolean>public int hashCode()
hashCode in class Statistics<Boolean>public String toString()
toString in class Statistics<Boolean>Copyright © 2022 The Apache Software Foundation. All rights reserved.