public class TimeStatistics extends Statistics<Long>
isEmpty| Constructor and Description |
|---|
TimeStatistics() |
| Modifier and Type | Method and Description |
|---|---|
long |
calculateRamSize() |
void |
deserialize(ByteBuffer byteBuffer) |
void |
deserialize(InputStream inputStream)
read data from the inputStream.
|
Long |
getFirstValue() |
Long |
getLastValue() |
Long |
getMaxValue() |
Long |
getMinValue() |
int |
getStatsSize()
The output of this method should be identical to the method "serializeStats(OutputStream
outputStream)"
|
double |
getSumDoubleValue() |
long |
getSumLongValue() |
TSDataType |
getType() |
protected void |
mergeStatisticsValue(Statistics<Long> stats) |
int |
serializeStats(OutputStream outputStream) |
void |
update(long time) |
void |
update(long[] time,
int batchSize) |
void |
updateStats(long minValue,
long maxValue)
This method with two parameters is only used by
unsequence which
updates/inserts/deletes timestamp. |
deserialize, deserialize, equals, getCount, getEndTime, getSerializedSize, getSizeByType, getStartTime, getStatsByType, hashCode, isEmpty, mergeStatistics, serialize, setCount, setEmpty, setEndTime, setStartTime, toString, update, update, update, update, update, update, update, update, update, update, update, updatepublic TSDataType getType()
getType in class Statistics<Long>public int getStatsSize()
getStatsSize in class Statistics<Long>public void update(long time)
update in class Statistics<Long>public void update(long[] time,
int batchSize)
update in class Statistics<Long>public Long getMinValue()
getMinValue in class Statistics<Long>public Long getMaxValue()
getMaxValue in class Statistics<Long>public Long getFirstValue()
getFirstValue in class Statistics<Long>public Long getLastValue()
getLastValue in class Statistics<Long>public double getSumDoubleValue()
getSumDoubleValue in class Statistics<Long>public long getSumLongValue()
getSumLongValue in class Statistics<Long>public void updateStats(long minValue,
long maxValue)
Statisticsunsequence which
updates/inserts/deletes timestamp.updateStats in class Statistics<Long>minValue - min timestampmaxValue - max timestamppublic long calculateRamSize()
calculateRamSize in class Statistics<Long>protected void mergeStatisticsValue(Statistics<Long> stats)
mergeStatisticsValue in class Statistics<Long>public int serializeStats(OutputStream outputStream)
public void deserialize(InputStream inputStream) throws IOException
Statisticsdeserialize in class Statistics<Long>IOExceptionpublic void deserialize(ByteBuffer byteBuffer)
deserialize in class Statistics<Long>Copyright © 2022 The Apache Software Foundation. All rights reserved.