Class AbstractStatistics

java.lang.Object
org.apache.iotdb.confignode.manager.load.cache.AbstractStatistics
Direct Known Subclasses:
ConsensusGroupStatistics, NodeStatistics, RegionStatistics

public abstract class AbstractStatistics extends Object
AbstractStatistics contains the statistics nano timestamp when calculating the statistics. All kinds of statistics should extend this class then expand its required fields.
  • Constructor Details

    • AbstractStatistics

      protected AbstractStatistics(long statisticsNanoTimestamp)
  • Method Details

    • getStatisticsNanoTimestamp

      public long getStatisticsNanoTimestamp()
    • isNewerThan

      public boolean isNewerThan(AbstractStatistics o)
      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.