private String truncateSingleValue(String value, int limit) {
        byte[] inBytes = value.getBytes(Charset.defaultCharset());
        if (inBytes.length > limit) {
            value = new String(inBytes, 0, limit);
        }
        return value;
    }
Parse event to {@literal List<LogItem>} format.

@param context Context of CLS sink.
@param event Event to be pares to {@literal List<LogItem>}
@return Prepared data structure to send.
inlong-sort-standalone/sort-standalone-source/src/main/java/org/apache/inlong/sort/standalone/sink/cls/DefaultEvent2LogItemHandler.java