Class LongStatistics
- java.lang.Object
-
- org.apache.iotdb.tsfile.file.metadata.statistics.Statistics<java.lang.Long>
-
- org.apache.iotdb.tsfile.file.metadata.statistics.LongStatistics
-
public class LongStatistics extends Statistics<java.lang.Long>
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.tsfile.file.metadata.statistics.Statistics
isEmpty
-
-
Constructor Summary
Constructors Constructor Description LongStatistics()
-
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.LonggetFirstValue()java.lang.LonggetLastValue()java.lang.LonggetMaxValue()java.lang.LonggetMinValue()intgetStatsSize()The output of this method should be identical to the method "serializeStats(outputStream)".doublegetSumDoubleValue()longgetSumLongValue()TSDataTypegetType()inthashCode()voidinitializeStats(long min, long max, long firstValue, long last, double sum)protected voidmergeStatisticsValue(Statistics<java.lang.Long> stats)intserializeStats(java.io.OutputStream outputStream)java.lang.StringtoString()voidupdateStats(long minValue, long maxValue)This method with two parameters is only used byunsequencewhich updates/inserts/deletes timestamp.-
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
-
-
-
-
Method Detail
-
getType
public TSDataType getType()
- Specified by:
getTypein classStatistics<java.lang.Long>
-
getStatsSize
public int getStatsSize()
The output of this method should be identical to the method "serializeStats(outputStream)".- Specified by:
getStatsSizein classStatistics<java.lang.Long>
-
initializeStats
public void initializeStats(long min, long max, long firstValue, long last, double sum)
-
getMinValue
public java.lang.Long getMinValue()
- Specified by:
getMinValuein classStatistics<java.lang.Long>
-
getMaxValue
public java.lang.Long getMaxValue()
- Specified by:
getMaxValuein classStatistics<java.lang.Long>
-
getFirstValue
public java.lang.Long getFirstValue()
- Specified by:
getFirstValuein classStatistics<java.lang.Long>
-
getLastValue
public java.lang.Long getLastValue()
- Specified by:
getLastValuein classStatistics<java.lang.Long>
-
getSumDoubleValue
public double getSumDoubleValue()
- Specified by:
getSumDoubleValuein classStatistics<java.lang.Long>
-
getSumLongValue
public long getSumLongValue()
- Specified by:
getSumLongValuein classStatistics<java.lang.Long>
-
updateStats
public void updateStats(long minValue, long maxValue)Description copied from class:StatisticsThis method with two parameters is only used byunsequencewhich updates/inserts/deletes timestamp.- Overrides:
updateStatsin classStatistics<java.lang.Long>- Parameters:
minValue- min timestampmaxValue- max timestamp
-
calculateRamSize
public long calculateRamSize()
- Specified by:
calculateRamSizein classStatistics<java.lang.Long>
-
mergeStatisticsValue
protected void mergeStatisticsValue(Statistics<java.lang.Long> stats)
- Specified by:
mergeStatisticsValuein classStatistics<java.lang.Long>
-
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.Long>- 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.Long>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classStatistics<java.lang.Long>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classStatistics<java.lang.Long>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classStatistics<java.lang.Long>
-
-