MCPcopy Create free account
hub / github.com/apache/arrow-rs / values_slice

Method values_slice

arrow-array/src/array/run_array.rs:273–280  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Callers 8

run_end_encoded_castFunction · 0.45
encoderMethod · 0.45
filter_run_end_arrayFunction · 0.45
concat_run_arraysFunction · 0.45
foldFunction · 0.45
min_max_array_helperFunction · 0.45

Calls 4

is_emptyMethod · 0.45
sliceMethod · 0.45

Tested by 2