vortex-fastlanes 0.65.0

Vortex fastlanes arrays
Documentation
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright the Vortex contributors

use vortex_array::ArrayRef;
use vortex_array::vtable::ValidityChild;
use vortex_array::vtable::ValidityChildSliceHelper;

use super::RLE;
use crate::RLEArray;

impl ValidityChild<RLE> for RLE {
    fn validity_child(array: &RLEArray) -> &ArrayRef {
        array.indices()
    }
}

impl ValidityChildSliceHelper for RLEArray {
    fn unsliced_child_and_slice(&self) -> (&ArrayRef, usize, usize) {
        let (start, len) = (self.offset(), self.len());
        (self.indices(), start, start + len)
    }
}