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

Method get_start_physical_index

arrow-buffer/src/buffer/run.rs:246–252  ·  view source on GitHub ↗

Returns the physical index at which the logical array starts. The same as calling `get_physical_index(0)` but with a fast path if the buffer is not logically sliced, in which case it always returns `0`.

(&self)

Source from the content-addressed store, hash-verified

244 /// The same as calling `get_physical_index(0)` but with a fast path if the
245 /// buffer is not logically sliced, in which case it always returns `0`.
246 pub fn get_start_physical_index(&self) -> usize {
247 if self.logical_offset == 0 || self.logical_length == 0 {
248 return 0;
249 }
250 // Fallback to binary search
251 self.get_physical_index(0)
252 }
253
254 /// Returns the physical index at which the logical array ends.
255 ///

Callers 7

sliced_valuesMethod · 0.45
get_physical_indicesMethod · 0.45
run_end_encoded_castFunction · 0.45
filter_run_end_arrayFunction · 0.45
sort_run_innerFunction · 0.45

Calls 1

get_physical_indexMethod · 0.45

Tested by

no test coverage detected