get

operator fun get(index: Int): PgRange

Returns the range at index.

PostgreSQL normalizes a multirange on the way in, merging anything that overlaps or touches and sorting what remains, so the ranges arrive disjoint and in ascending order however they were written.

Return

The range at that position.

Parameters

index

Zero-based index.

Throws

COLUMN_NOT_FOUND if index is outside ranges.