Class RegionGroupStatistics

java.lang.Object
org.apache.iotdb.confignode.manager.load.cache.region.RegionGroupStatistics

public class RegionGroupStatistics extends Object
RegionGroupStatistics indicates the statistics of a RegionGroup.
  • Constructor Details

  • Method Details

    • generateDefaultRegionGroupStatistics

      public static RegionGroupStatistics generateDefaultRegionGroupStatistics()
    • getRegionGroupStatus

      public RegionGroupStatus getRegionGroupStatus()
    • getRegionStatus

      public RegionStatus getRegionStatus(int dataNodeId)
      Get the specified Region's status.
      Parameters:
      dataNodeId - Where the Region resides
      Returns:
      Region's latest status if received heartbeat recently, Unknown otherwise
    • getRegionStatisticsMap

      public Map<Integer,RegionStatistics> getRegionStatisticsMap()
    • getRegionIds

      public List<Integer> getRegionIds()
    • isNewerThan

      public boolean isNewerThan(RegionGroupStatistics o)
      Check if the current statistics is newer than the given one.
      Parameters:
      o - The other RegionGroupStatistics.
      Returns:
      True if one of the RegionStatistics in the current RegionGroupStatistics is newer than the corresponding one in the other RegionGroupStatistics, or the current RegionGroupStatistics contains newer Region's statistics, False otherwise.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object