Function arrow::compute::kernels::limit::limit

source ·
pub fn limit(array: &ArrayRef, num_elements: usize) -> ArrayRef
👎Deprecated: Use Array::slice
Expand description

Returns the array, taking only the number of elements specified

Limit performs a zero-copy slice of the array, and is a convenience method on slice where:

  • it performs a bounds-check on the array
  • it slices from offset 0