类 RegionRouteMap


  • public class RegionRouteMap
    extends java.lang.Object
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void clear()  
      void deserialize​(java.io.InputStream stream, org.apache.thrift.protocol.TProtocol protocol)  
      void deserialize​(java.nio.ByteBuffer buffer)  
      boolean equals​(java.lang.Object o)  
      int getLeader​(org.apache.iotdb.common.rpc.thrift.TConsensusGroupId regionGroupId)  
      java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​java.lang.Integer> getRegionLeaderMap()  
      java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet> getRegionPriorityMap()  
      int hashCode()  
      boolean isEmpty()  
      void removeRegionRouteCache​(org.apache.iotdb.common.rpc.thrift.TConsensusGroupId regionGroupId)  
      void serialize​(java.io.OutputStream stream, org.apache.thrift.protocol.TProtocol protocol)  
      void setLeader​(org.apache.iotdb.common.rpc.thrift.TConsensusGroupId regionGroupId, int leaderId)  
      void setRegionLeaderMap​(java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​java.lang.Integer> regionLeaderMap)  
      void setRegionPriorityMap​(java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet> regionPriorityMap)  
      • 从类继承的方法 java.lang.Object

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

      • RegionRouteMap

        public RegionRouteMap()
    • 方法详细资料

      • getLeader

        public int getLeader​(org.apache.iotdb.common.rpc.thrift.TConsensusGroupId regionGroupId)
        返回:
        DataNodeId where the specified RegionGroup's leader resides. And return -1 if the leader is not recorded yet
      • setLeader

        public void setLeader​(org.apache.iotdb.common.rpc.thrift.TConsensusGroupId regionGroupId,
                              int leaderId)
      • getRegionLeaderMap

        public java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​java.lang.Integer> getRegionLeaderMap()
      • setRegionLeaderMap

        public void setRegionLeaderMap​(java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​java.lang.Integer> regionLeaderMap)
      • getRegionPriorityMap

        public java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet> getRegionPriorityMap()
      • isEmpty

        public boolean isEmpty()
      • setRegionPriorityMap

        public void setRegionPriorityMap​(java.util.Map<org.apache.iotdb.common.rpc.thrift.TConsensusGroupId,​org.apache.iotdb.common.rpc.thrift.TRegionReplicaSet> regionPriorityMap)
      • removeRegionRouteCache

        public void removeRegionRouteCache​(org.apache.iotdb.common.rpc.thrift.TConsensusGroupId regionGroupId)
      • serialize

        public void serialize​(java.io.OutputStream stream,
                              org.apache.thrift.protocol.TProtocol protocol)
                       throws java.io.IOException
        抛出:
        java.io.IOException
      • deserialize

        public void deserialize​(java.nio.ByteBuffer buffer)
      • deserialize

        public void deserialize​(java.io.InputStream stream,
                                org.apache.thrift.protocol.TProtocol protocol)
                         throws java.io.IOException,
                                org.apache.thrift.TException
        抛出:
        java.io.IOException
        org.apache.thrift.TException
      • clear

        public void clear()
      • equals

        public boolean equals​(java.lang.Object o)
        覆盖:
        equals 在类中 java.lang.Object
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 java.lang.Object