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

Method new

arrow-array/src/run_iterator.rs:58–68  ·  view source on GitHub ↗

create a new iterator

(array: TypedRunArray<'a, R, V>)

Source from the content-addressed store, hash-verified

56{
57 /// create a new iterator
58 pub fn new(array: TypedRunArray<'a, R, V>) -> Self {
59 let current_front_physical = array.run_array().get_start_physical_index();
60 let current_back_physical = array.run_array().get_end_physical_index() + 1;
61 RunArrayIter {
62 array,
63 current_front_logical: array.offset(),
64 current_front_physical,
65 current_back_logical: array.offset() + array.len(),
66 current_back_physical,
67 }
68 }
69}
70
71impl<'a, R, V> Iterator for RunArrayIter<'a, R, V>

Callers

nothing calls this directly

Calls 5

run_arrayMethod · 0.80
offsetMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected