Class IntegerStatistics
- java.lang.Object
-
- org.apache.iotdb.tsfile.file.metadata.statistics.Statistics<java.lang.Integer>
-
- org.apache.iotdb.tsfile.file.metadata.statistics.IntegerStatistics
-
public class IntegerStatistics extends Statistics<java.lang.Integer>
Statistics for int type.
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.tsfile.file.metadata.statistics.Statistics
isEmpty
-
-
Constructor Summary
Constructors Constructor Description IntegerStatistics()
-
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.IntegergetFirstValue()java.lang.IntegergetLastValue()java.lang.IntegergetMaxValue()java.lang.IntegergetMinValue()intgetStatsSize()The output of this method should be identical to the method "serializeStats(outputStream)".doublegetSumDoubleValue()longgetSumLongValue()TSDataTypegetType()inthashCode()voidinitializeStats(int min, int max, int first, int last, long sum)protected voidmergeStatisticsValue(Statistics<java.lang.Integer> 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.Integer>
-
getStatsSize
public int getStatsSize()
The output of this method should be identical to the method "serializeStats(outputStream)".- Specified by:
getStatsSizein classStatistics<java.lang.Integer>
-
initializeStats
public void initializeStats(int min, int max, int first, int last, long sum)
-
calculateRamSize
public long calculateRamSize()
- Specified by:
calculateRamSizein classStatistics<java.lang.Integer>
-
getMinValue
public java.lang.Integer getMinValue()
- Specified by:
getMinValuein classStatistics<java.lang.Integer>
-
getMaxValue
public java.lang.Integer getMaxValue()
- Specified by:
getMaxValuein classStatistics<java.lang.Integer>
-
getFirstValue
public java.lang.Integer getFirstValue()
- Specified by:
getFirstValuein classStatistics<java.lang.Integer>
-
getLastValue
public java.lang.Integer getLastValue()
- Specified by:
getLastValuein classStatistics<java.lang.Integer>
-
getSumDoubleValue
public double getSumDoubleValue()
- Specified by:
getSumDoubleValuein classStatistics<java.lang.Integer>
-
getSumLongValue
public long getSumLongValue()
- Specified by:
getSumLongValuein classStatistics<java.lang.Integer>
-
mergeStatisticsValue
protected void mergeStatisticsValue(Statistics<java.lang.Integer> stats)
- Specified by:
mergeStatisticsValuein classStatistics<java.lang.Integer>
-
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.Integer>- 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.Integer>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classStatistics<java.lang.Integer>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classStatistics<java.lang.Integer>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classStatistics<java.lang.Integer>
-
-