public ApiMessageAndVersion toRecord(AutoMQVersion version) {
        S3StreamSetObjectRecord record = new S3StreamSetObjectRecord()
            .setObjectId(objectId)
            .setNodeId(nodeId)
            .setOrderId(orderId)
            .setDataTimeInMs(dataTimeInMs);
        if (version.streamSetObjectRecordVersion() < (short) 1) {
            record.setRanges(ranges);
        }
        return new ApiMessageAndVersion(record, version.streamSetObjectRecordVersion());
    }
The order id of the object. Sort by this field to get the order of the objects which contains logically increasing streams.
<p>
When compact a batch of objects to a compacted object, this compacted object's order id will be assigned the value <code>first object's order
id in this batch</code>
metadata/src/main/java/org/apache/kafka/metadata/stream/S3StreamSetObject.java