Class BooleanStatistics
- java.lang.Object
-
- org.apache.iotdb.tsfile.file.metadata.statistics.Statistics<java.lang.Boolean>
-
- org.apache.iotdb.tsfile.file.metadata.statistics.BooleanStatistics
-
public class BooleanStatistics extends Statistics<java.lang.Boolean>
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.tsfile.file.metadata.statistics.Statistics
isEmpty
-
-
Constructor Summary
Constructors Constructor Description BooleanStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcalculateRamSize()voiddeserialize(java.io.InputStream inputStream)deserialize data from the inputStream.voiddeserialize(java.nio.ByteBuffer byteBuffer)booleanequals(java.lang.Object o)java.lang.BooleangetFirstValue()java.lang.BooleangetLastValue()java.lang.BooleangetMaxValue()java.lang.BooleangetMinValue()intgetStatsSize()The output of this method should be identical to the method "serializeStats(outputStream)".doublegetSumDoubleValue()longgetSumLongValue()TSDataTypegetType()inthashCode()voidinitializeStats(boolean firstValue, boolean lastValue, long sum)initialize boolean Statistics.protected voidmergeStatisticsValue(Statistics<java.lang.Boolean> stats)intserializeStats(java.io.OutputStream outputStream)java.lang.StringtoString()-
Methods inherited from class org.apache.iotdb.tsfile.file.metadata.statistics.Statistics
containedByTimeFilter, deserialize, deserialize, getCount, getEndTime, getSerializedSize, getSizeByType, getStartTime, getStatsByType, hasNullValue, isEmpty, mergeStatistics, serialize, setCount, setEmpty, setEndTime, setStartTime, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, updateStats
-
-
-
-
Method Detail
-
getType
public TSDataType getType()
- Specified by:
getTypein classStatistics<java.lang.Boolean>
-
getStatsSize
public int getStatsSize()
The output of this method should be identical to the method "serializeStats(outputStream)".- Specified by:
getStatsSizein classStatistics<java.lang.Boolean>
-
initializeStats
public void initializeStats(boolean firstValue, boolean lastValue, long sum)initialize boolean Statistics.- Parameters:
firstValue- first boolean valuelastValue- last boolean value
-
calculateRamSize
public long calculateRamSize()
- Specified by:
calculateRamSizein classStatistics<java.lang.Boolean>
-
getMinValue
public java.lang.Boolean getMinValue()
- Specified by:
getMinValuein classStatistics<java.lang.Boolean>
-
getMaxValue
public java.lang.Boolean getMaxValue()
- Specified by:
getMaxValuein classStatistics<java.lang.Boolean>
-
getFirstValue
public java.lang.Boolean getFirstValue()
- Specified by:
getFirstValuein classStatistics<java.lang.Boolean>
-
getLastValue
public java.lang.Boolean getLastValue()
- Specified by:
getLastValuein classStatistics<java.lang.Boolean>
-
getSumDoubleValue
public double getSumDoubleValue()
- Specified by:
getSumDoubleValuein classStatistics<java.lang.Boolean>
-
getSumLongValue
public long getSumLongValue()
- Specified by:
getSumLongValuein classStatistics<java.lang.Boolean>
-
mergeStatisticsValue
protected void mergeStatisticsValue(Statistics<java.lang.Boolean> stats)
- Specified by:
mergeStatisticsValuein classStatistics<java.lang.Boolean>
-
serializeStats
public int serializeStats(java.io.OutputStream outputStream) throws java.io.IOException- Throws:
java.io.IOException
-
deserialize
public void deserialize(java.io.InputStream inputStream) throws java.io.IOExceptionDescription copied from class:Statisticsdeserialize data from the inputStream.- Specified by:
deserializein classStatistics<java.lang.Boolean>- Parameters:
inputStream- input stream- Throws:
java.io.IOException- exception when operating stream
-
deserialize
public void deserialize(java.nio.ByteBuffer byteBuffer)
- Specified by:
deserializein classStatistics<java.lang.Boolean>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classStatistics<java.lang.Boolean>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classStatistics<java.lang.Boolean>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classStatistics<java.lang.Boolean>
-
-