private long[] checkMemCost(
      InsertTabletNode insertTabletNode, int start, int end, boolean noFailure, TSStatus[] results)
      throws WriteProcessException {
    long[] memIncrements;
    if (insertTabletNode.isAligned()) {
      memIncrements = checkAlignedMemCost(insertTabletNode, start, end, noFailure, results);
    } else {
      memIncrements =
          checkMemCostAndAddToTspInfoForTablet(
              insertTabletNode.getDeviceID(),
              insertTabletNode.getMeasurements(),
              insertTabletNode.getDataTypes(),
              insertTabletNode.getColumns(),
              start,
              end);
    }
    return memIncrements;
  }
Insert data in an InsertRowNode into the workingMemtable.

@param insertRowNode physical plan of insertion
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessor.java