@Override
    public byte[] format(ProfileEvent event, HdfsIdConfig idConfig) {
        long msgTime = event.getRawLogTime();
        String partitionFieldValue = idConfig.parsePartitionField(msgTime);
        String msgTimeFieldValue = idConfig.parseMsgTimeField(msgTime);
        byte[] partitionFieldBytes = partitionFieldValue.getBytes();
        byte[] msgTimeFieldBytes = msgTimeFieldValue.getBytes();
        byte[] formatBytes = new byte[partitionFieldBytes.length + SEPARATOR_LENGTH + msgTimeFieldBytes.length
                + SEPARATOR_LENGTH + event.getBody().length];
        int index = 0;
        System.arraycopy(partitionFieldBytes, 0, formatBytes, index, partitionFieldBytes.length);
        index += partitionFieldBytes.length;
        formatBytes[index] = (byte) idConfig.getSeparator().charAt(0);
        index++;
        System.arraycopy(msgTimeFieldBytes, 0, formatBytes, index, msgTimeFieldBytes.length);
        index += msgTimeFieldBytes.length;
        formatBytes[index] = (byte) idConfig.getSeparator().charAt(0);
        index++;
        System.arraycopy(event.getBody(), 0, formatBytes, index, event.getBody().length);
        return formatBytes;
    }
format data, the protocol is : partitionField|msgTime|rawData<br>
1. add partition field and separator; partitionField support Java Date Format;<br>
2. add msgTime field and separator; msgTime support Java Date Format;<br>
3. keep rawData;<br>

@param  event
@param  idConfig
@return
inlong-sort-standalone/sort-standalone-source/src/main/java/org/apache/inlong/sort/standalone/sink/hive/DefaultEventFormatHandler.java