java.lang.Object
org.apache.iotdb.confignode.persistence.partition.RegionGroup

public class RegionGroup extends Object
  • Constructor Details

    • RegionGroup

      public RegionGroup()
    • RegionGroup

      public RegionGroup(long createTime, TRegionReplicaSet replicaSet)
  • Method Details

    • getCreateTime

      public long getCreateTime()
    • getId

      public TConsensusGroupId getId()
    • getReplicaSet

      public TRegionReplicaSet getReplicaSet()
    • updateDataNode

      public void updateDataNode(TDataNodeLocation newDataNodeLocation)
      Update the DataNodeLocation in TRegionReplicaSet if necessary.
      Parameters:
      newDataNodeLocation - The new DataNodeLocation.
    • addRegionLocation

      public void addRegionLocation(TDataNodeLocation node)
    • removeRegionLocation

      public void removeRegionLocation(int nodeId)
    • updateSlotCountMap

      public void updateSlotCountMap(Map<TSeriesPartitionSlot,AtomicLong> deltaMap)
      Parameters:
      deltaMap - Map<TSeriesPartitionSlot, Delta TTimePartitionSlot Count>
    • getSeriesSlotCount

      public int getSeriesSlotCount()
    • getTimeSlotCount

      public long getTimeSlotCount()
    • belongsToDataNode

      public boolean belongsToDataNode(int dataNodeId)
      Check if the RegionGroup belongs to the specified DataNode.
      Parameters:
      dataNodeId - The specified DataNodeId.
      Returns:
      True if the RegionGroup belongs to the specified DataNode.
    • serialize

      public void serialize(OutputStream outputStream, org.apache.thrift.protocol.TProtocol protocol) throws IOException, org.apache.thrift.TException
      Throws:
      IOException
      org.apache.thrift.TException
    • deserialize

      public void deserialize(InputStream inputStream, org.apache.thrift.protocol.TProtocol protocol) throws IOException, org.apache.thrift.TException
      Throws:
      IOException
      org.apache.thrift.TException
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object