Class AbstractStatistics
java.lang.Object
org.apache.iotdb.confignode.manager.load.cache.AbstractStatistics
- Direct Known Subclasses:
ConsensusGroupStatistics,NodeStatistics,RegionStatistics
AbstractStatistics contains the statistics nano timestamp when calculating the statistics. All
kinds of statistics should extend this class then expand its required fields.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanCompare if this statistics is newer than the given one.
-
Constructor Details
-
AbstractStatistics
protected AbstractStatistics(long statisticsNanoTimestamp)
-
-
Method Details
-
getStatisticsNanoTimestamp
public long getStatisticsNanoTimestamp() -
isNewerThan
Compare if this statistics is newer than the given one.- Parameters:
o- The given statistics.- Returns:
- True if the logical timestamp of this statistics is newer than the given one, False otherwise.
-