Class DataPartitionPolicyTable
java.lang.Object
org.apache.iotdb.confignode.manager.load.balancer.partition.DataPartitionPolicyTable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetRegionGroupIdOrActivateIfNecessary(TSeriesPartitionSlot seriesPartitionSlot) Get or activate the specified SeriesPartitionSlot in dataAllotMap.voidlogDataAllotTable(String database) voidreBalanceDataPartitionPolicy(List<TConsensusGroupId> dataRegionGroups) Re-balance the allocation of SeriesSlots to RegionGroups.voidvoidsetDataAllotMap(Map<TSeriesPartitionSlot, TConsensusGroupId> dataAllotMap) Only use this interface when init PartitionBalancer.
-
Constructor Details
-
DataPartitionPolicyTable
public DataPartitionPolicyTable()
-
-
Method Details
-
getRegionGroupIdOrActivateIfNecessary
public TConsensusGroupId getRegionGroupIdOrActivateIfNecessary(TSeriesPartitionSlot seriesPartitionSlot) Get or activate the specified SeriesPartitionSlot in dataAllotMap.- Parameters:
seriesPartitionSlot- The specified SeriesPartitionSlot- Returns:
- The RegionGroupId of the specified SeriesPartitionSlot, activate when its empty yet
-
reBalanceDataPartitionPolicy
Re-balance the allocation of SeriesSlots to RegionGroups.- Parameters:
dataRegionGroups- All DataRegionGroups currently in the Database
-
setDataAllotMap
Only use this interface when init PartitionBalancer. -
logDataAllotTable
-
acquireLock
public void acquireLock() -
releaseLock
public void releaseLock()
-