Class RegionGroupStatistics
java.lang.Object
org.apache.iotdb.confignode.manager.load.cache.region.RegionGroupStatistics
RegionGroupStatistics indicates the statistics of a RegionGroup.
-
Constructor Summary
ConstructorsConstructorDescriptionRegionGroupStatistics(RegionGroupStatus regionGroupStatus, Map<Integer, RegionStatistics> regionStatisticsMap) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RegionGroupStatisticsgetRegionStatus(int dataNodeId) Get the specified Region's status.inthashCode()booleanCheck if the current statistics is newer than the given one.toString()
-
Constructor Details
-
RegionGroupStatistics
public RegionGroupStatistics(RegionGroupStatus regionGroupStatus, Map<Integer, RegionStatistics> regionStatisticsMap)
-
-
Method Details
-
generateDefaultRegionGroupStatistics
-
getRegionGroupStatus
-
getRegionStatus
Get the specified Region's status.- Parameters:
dataNodeId- Where the Region resides- Returns:
- Region's latest status if received heartbeat recently, Unknown otherwise
-
getRegionStatisticsMap
-
getRegionIds
-
isNewerThan
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
-
hashCode
public int hashCode() -
toString
-