public void buildRecordInfo(int brokerId, StringBuilder strBuff, long dataTime) {
        int itemCnt = 0;
        strBuff.append("{\"dt\":").append(dataTime)
                .append(",\"bId\":").append(brokerId)
                .append(",\"ver\":").append(TBaseConstants.OFFSET_TOPIC_PUBLISH_RECORD_VERSION_1)
                .append(",\"topic\":\"").append(topicName)
                .append("\",\"offsets\":[");
        for (Map.Entry<Integer, OffsetPubItem> entry : storeOffsetMap.entrySet()) {
            if (entry == null || entry.getKey() == null || entry.getValue() == null) {
                continue;
            }
            if (itemCnt++ > 0) {
                strBuff.append(",");
            }
            strBuff.append("{\"storeId\":").append(entry.getValue().getStoreId())
                    .append(",\"numPart\":").append(entry.getValue().getNumPart())
                    .append(",\"iMin\":").append(entry.getValue().getIndexMin())
                    .append(",\"iMax\":").append(entry.getValue().getIndexMax())
                    .append(",\"dMin\":").append(entry.getValue().getDataMin())
                    .append(",\"dMax\":").append(entry.getValue().getDataMax())
                    .append("}");
        }
        strBuff.append("]}");
    }
Build brief topic produce offset information in string format

@param brokerId    node id
@param strBuff     string buffer
@param dataTime    record build time
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/offset/topicpub/TopicPubInfo.java