Similar to [`values`] but accounts for logical slicing, returning only the values that are part of the logical slice of this array. [`values`]: Self::values
(&self)
| 271 | /// |
| 272 | /// [`values`]: Self::values |
| 273 | pub fn values_slice(&self) -> ArrayRef { |
| 274 | if self.is_empty() { |
| 275 | return self.values.slice(0, 0); |
| 276 | } |
| 277 | let start = self.get_start_physical_index(); |
| 278 | let end = self.get_end_physical_index(); |
| 279 | self.values.slice(start, end - start + 1) |
| 280 | } |
| 281 | |
| 282 | /// Returns the physical index at which the array slice starts. |
| 283 | /// |