public static long getAlignedTabletSize(
      InsertTabletNode insertTabletNode, int start, int end, TSStatus[] results) {
    if (start >= end) {
      return 0L;
    }
    long memSize = 0;
    for (int i = 0; i < insertTabletNode.getMeasurements().length; i++) {
      if (!insertTabletNode.isValidMeasurement(i)) {
        continue;
      }
      if (results == null) {
        memSize += (long) (end - start) * insertTabletNode.getDataTypes()[i].getDataTypeSize();
      } else {
        for (int j = start; j < end; j++) {
          if (results[j] == null
              || results[j].code == TSStatusCode.SUCCESS_STATUS.getStatusCode()) {
            memSize += insertTabletNode.getDataTypes()[i].getDataTypeSize();
          }
        }
      }
    }
    // time and index column memSize for vector
    memSize += (end - start) * (8L + 4L);
    return memSize;
  }
Function for obtaining the value size. For text values, their size has already been added to
memory before insertion
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/MemUtils.java