| 944 | } |
| 945 | |
| 946 | void Subarray::get_range( |
| 947 | uint32_t dim_idx, uint64_t range_idx, const Range** range) const { |
| 948 | auto dim_num = array_->array_schema_latest().dim_num(); |
| 949 | if (dim_idx >= dim_num) { |
| 950 | throw SubarrayException("Cannot get range; Invalid dimension index"); |
| 951 | } |
| 952 | |
| 953 | auto range_num = range_subset_[dim_idx].num_ranges(); |
| 954 | if (range_idx >= range_num) { |
| 955 | throw SubarrayException("Cannot get range; Invalid range index"); |
| 956 | } |
| 957 | |
| 958 | *range = &range_subset_[dim_idx][range_idx]; |
| 959 | } |
| 960 | |
| 961 | void Subarray::get_range( |
| 962 | uint32_t dim_idx, |
no test coverage detected