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

Method slice

arrow-array/src/array/map_array.rs:238–245  ·  view source on GitHub ↗

Returns a zero-copy slice of this array with the indicated offset and length.

(&self, offset: usize, length: usize)

Source from the content-addressed store, hash-verified

236
237 /// Returns a zero-copy slice of this array with the indicated offset and length.
238 pub fn slice(&self, offset: usize, length: usize) -> Self {
239 Self {
240 data_type: self.data_type.clone(),
241 nulls: self.nulls.as_ref().map(|n| n.slice(offset, length)),
242 entries: self.entries.clone(),
243 value_offsets: self.value_offsets.slice(offset, length),
244 }
245 }
246
247 /// constructs a new iterator
248 pub fn iter(&self) -> MapArrayIter<'_> {

Callers 5

value_uncheckedMethod · 0.45
valueMethod · 0.45
test_map_arrayFunction · 0.45
test_map_array_sliceFunction · 0.45
test_try_newFunction · 0.45

Calls 2

cloneMethod · 0.45
as_refMethod · 0.45

Tested by 3

test_map_arrayFunction · 0.36
test_map_array_sliceFunction · 0.36
test_try_newFunction · 0.36