public static long getAlignedRowRecordSize(
      List<TSDataType> dataTypes, Object[] value, TsTableColumnCategory[] columnCategories) {
    // time and index size
    long memSize = 8L + 4L;
    for (int i = 0; i < dataTypes.size(); i++) {
      if (value[i] == null
          || dataTypes.get(i).isBinary()
          || columnCategories != null && columnCategories[i] != TsTableColumnCategory.FIELD) {
        continue;
      }
      memSize += dataTypes.get(i).getDataTypeSize();
    }
    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