vortex-fastlanes 0.68.0

Vortex fastlanes arrays
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright the Vortex contributors

use vortex_array::ArrayView;
use vortex_array::vtable::ValidityVTable;
use vortex_error::VortexResult;

use crate::rle::RLE;
use crate::rle::RLEArrayExt;

impl ValidityVTable<RLE> for RLE {
    fn validity(array: ArrayView<'_, RLE>) -> VortexResult<vortex_array::validity::Validity> {
        let start = array.offset();
        let stop = start + array.len();
        array.indices().slice(start..stop)?.validity()
    }
}