public static long getRecordSize(TSDataType dataType, Object value, boolean addingTextDataSize) {
    if (dataType.isBinary()) {
      return 8L + (addingTextDataSize ? getBinarySize((Binary) value) : 0);
    }
    return 8L + dataType.getDataTypeSize();
  }
Function for obtaining the value size. For text values, there are two conditions: 1. During
insertion, their size has already been added to memory. 2. During flushing, their size needs to
be calculated.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/MemUtils.java