类 CopySetRegionGroupAllocator

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet generateOptimalRegionReplicasDistribution​(java.util.Map<java.lang.Integer,​org.apache.iotdb.common.rpc.thrift.TDataNodeConfiguration> availableDataNodeMap, java.util.Map<java.lang.Integer,​java.lang.Long> freeDiskSpaceMap, java.util.List<org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet> allocatedRegionGroups, int replicationFactor, org.apache.iotdb.common.rpc.thrift.TConsensusGroupId consensusGroupId)
      Generate an optimal RegionReplicas' distribution for a new RegionGroup
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • CopySetRegionGroupAllocator

        public CopySetRegionGroupAllocator()
    • 方法详细资料

      • generateOptimalRegionReplicasDistribution

        public org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet generateOptimalRegionReplicasDistribution​(java.util.Map<java.lang.Integer,​org.apache.iotdb.common.rpc.thrift.TDataNodeConfiguration> availableDataNodeMap,
                                                                                                              java.util.Map<java.lang.Integer,​java.lang.Long> freeDiskSpaceMap,
                                                                                                              java.util.List<org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet> allocatedRegionGroups,
                                                                                                              int replicationFactor,
                                                                                                              org.apache.iotdb.common.rpc.thrift.TConsensusGroupId consensusGroupId)
        从接口复制的说明: IRegionGroupAllocator
        Generate an optimal RegionReplicas' distribution for a new RegionGroup
        指定者:
        generateOptimalRegionReplicasDistribution 在接口中 IRegionGroupAllocator
        参数:
        availableDataNodeMap - DataNodes that can be used for allocation
        freeDiskSpaceMap - The free disk space of the DataNodes
        allocatedRegionGroups - Allocated RegionGroups
        replicationFactor - Replication factor of TRegionReplicaSet
        consensusGroupId - TConsensusGroupId of result TRegionReplicaSet
        返回:
        The optimal TRegionReplicaSet derived by the specified algorithm