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

Method slice

arrow-array/src/array/dictionary_array.rs:410–417  ·  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

408
409 /// Returns a zero-copy slice of this array with the indicated offset and length.
410 pub fn slice(&self, offset: usize, length: usize) -> Self {
411 Self {
412 data_type: self.data_type.clone(),
413 keys: self.keys.slice(offset, length),
414 values: self.values.clone(),
415 is_ordered: self.is_ordered,
416 }
417 }
418
419 /// Downcast this dictionary to a [`TypedDictionaryArray`]
420 ///

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected