select

fun select(points: BKDRadixSelector.PathSlice, partitionSlices: Array<BKDRadixSelector.PathSlice?>, from: Long, to: Long, partitionPoint: Long, dim: Int, dimCommonPrefix: Int): ByteArray

It uses the provided points from the given from to the given to to populate the partitionSlices array holder (length > 1) with two path slices so the path slice at position 0 contains partition - from points where the value of the dim is lower or equal to the to -from points on the slice at position 1.

The dimCommonPrefix provides a hint for the length of the common prefix length for the dim where are partitioning the points.

It return the value of the dim at the partition point.

If the provided points is wrapping an OfflinePointWriter, the writer is destroyed in the process to save disk space.