public ApiMessageAndVersion toRecord() {
        return new ApiMessageAndVersion(new RangeRecord()
            .setStreamId(streamId)
            .setEpoch(epoch)
            .setNodeId(nodeId)
            .setRangeIndex(rangeIndex)
            .setStartOffset(startOffset)
            .setEndOffset(endOffset), (short) 0);
    }
The node id of the node that owns the range.
metadata/src/main/java/org/apache/kafka/metadata/stream/RangeMetadata.java