@Override
  public int insertAlignedTablet(
      InsertTabletNode insertTabletNode, int start, int end, TSStatus[] results)
      throws WriteProcessException {
    try {
      writeAlignedTablet(insertTabletNode, start, end, results);
      // TODO-Table: what is the relation between this and TsFileProcessor.checkMemCost
      memSize += MemUtils.getAlignedTabletSize(insertTabletNode, start, end, results);
      int pointsInserted =
          (insertTabletNode.getMeasurementColumnCnt()
                  - insertTabletNode.getFailedMeasurementNumber())
              * (end - start);
      totalPointsNum += pointsInserted;
      return pointsInserted;
    } catch (RuntimeException e) {
      throw new WriteProcessException(e);
    }
  }
Create this MemChunk if it's not exist.

@param deviceId device id
@param schemaList measurement schemaList
@return this MemChunkGroup
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/AbstractMemTable.java