ordinalRange

fun ordinalRange(segmentNumber: Long, from: Key?, to: Key?): IntRange

The ordinals of segmentNumber whose keys lie in [from, to], both bounds inclusive.

Ordinals ascend with keys, so a key range is one contiguous ordinal range. See IndexReader.ordinalRange, which is the same bisect over the same key blocks.