Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
0ax1 committed Feb 26, 2025
1 parent 7a55fd9 commit b875888
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions encodings/runend/src/compute/take_from.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ use vortex_error::VortexResult;
use crate::{RunEndArray, RunEndEncoding};

impl TakeFromFn<&RunEndArray> for RunEndEncoding {
/// Takes values from the source array using run-end encoded indices.
///
/// # Arguments
///
/// * `indices` - The run-end encoded array containing the indices
/// * `array` - The source array to take values from
///
/// # Returns
///
/// * `Ok(Some(array))` - If was successful
/// * `Ok(None)` - If the source array has an unsupported dtype
///
fn take_from(
&self,
indices: &RunEndArray,
Expand Down

0 comments on commit b875888

Please sign in to comment.