Class RegionGroup
java.lang.Object
org.apache.iotdb.confignode.persistence.partition.RegionGroup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbelongsToDataNode(int dataNodeId) Check if the RegionGroup belongs to the specified DataNode.voiddeserialize(InputStream inputStream, org.apache.thrift.protocol.TProtocol protocol) booleanlonggetId()intlonginthashCode()voidremoveRegionLocation(int nodeId) voidserialize(OutputStream outputStream, org.apache.thrift.protocol.TProtocol protocol) voidupdateDataNode(TDataNodeLocation newDataNodeLocation) Update the DataNodeLocation in TRegionReplicaSet if necessary.voidupdateSlotCountMap(Map<TSeriesPartitionSlot, AtomicLong> deltaMap)
-
Constructor Details
-
RegionGroup
public RegionGroup() -
RegionGroup
-
-
Method Details
-
getCreateTime
public long getCreateTime() -
getId
-
getReplicaSet
-
updateDataNode
Update the DataNodeLocation in TRegionReplicaSet if necessary.- Parameters:
newDataNodeLocation- The new DataNodeLocation.
-
addRegionLocation
-
removeRegionLocation
public void removeRegionLocation(int nodeId) -
updateSlotCountMap
- 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:
IOExceptionorg.apache.thrift.TException
-
deserialize
public void deserialize(InputStream inputStream, org.apache.thrift.protocol.TProtocol protocol) throws IOException, org.apache.thrift.TException - Throws:
IOExceptionorg.apache.thrift.TException
-
equals
-
hashCode
public int hashCode()
-