public static long getRowRecordSize(List<TSDataType> dataTypes, Object[] value) {
    int emptyRecordCount = 0;
    long memSize = 0L;
    for (int i = 0; i < value.length; i++) {
      if (value[i] == null) {
        emptyRecordCount++;
        continue;
      }
      memSize += getRecordSize(dataTypes.get(i - emptyRecordCount), value[i], false);
    }
    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