public TRegionReplicaSet getSchemaRegionReplicaSet(final IDeviceID deviceID) {
    // A list of data region replica sets will store data in a same time partition.
    // We will insert data to the last set in the list.
    // TODO return the latest dataRegionReplicaSet for each time partition
    final String storageGroup = getStorageGroupByDevice(deviceID);
    final TSeriesPartitionSlot seriesPartitionSlot = calculateDeviceGroupId(deviceID);
    if (schemaPartitionMap.get(storageGroup) == null) {
      throw new RuntimeException(
          new IoTDBException("Path does not exist. ", TSStatusCode.PATH_NOT_EXIST.getStatusCode()));
    }
    return schemaPartitionMap.get(storageGroup).get(seriesPartitionSlot);
  }
For table model usage.

<p>The database shall start with "root.". Concat this to a user-provided db name if necessary.

<p>The device id shall be [table, seg1, ....]
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/partition/SchemaPartition.java