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

Method slice

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

Returns a zero-copy slice of this array with the indicated offset and length. # Panics - Specified slice (`offset` + `length`) exceeds existing length

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

Source from the content-addressed store, hash-verified

345 ///
346 /// - Specified slice (`offset` + `length`) exceeds existing length
347 pub fn slice(&self, offset: usize, length: usize) -> Self {
348 Self {
349 data_type: self.data_type.clone(),
350 run_ends: self.run_ends.slice(offset, length),
351 values: self.values.clone(),
352 }
353 }
354}
355
356impl<R: RunEndIndexType> From<ArrayData> for RunArray<R> {

Calls 1

cloneMethod · 0.45