public int getDataSize(Object data) {
        return data.toString().getBytes(StandardCharsets.UTF_8).length;
    }
Use for parse sink metadata by pos or name.
inlong-sort/sort-flink/sort-flink-v1.15/sort-connectors/iceberg/src/main/java/org/apache/inlong/sort/iceberg/utils/SinkMetadataUtils.java