[][src]Function arrow::compute::kernels::limit::limit

pub fn limit(array: &ArrayRef, num_elements: usize) -> ArrayRef

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