public static ByteBuffer encode(ElasticLogMeta meta) {
        try {
            return ByteBuffer.wrap(WRITER.writeValueAsBytes(meta));
        } catch (JsonProcessingException e) {
            LOGGER.error("encode ElasticLogMeta {} failed", meta, e);
            throw new IllegalArgumentException(e);
        }
    }
segmentMeta List for this topicPartition. Each segmentMeta refers to a logical Kafka segment(including log, index, time-index, txn).
core/src/main/scala/kafka/log/streamaspect/ElasticLogMeta.java