Skip to main content

vortex_array/arrays/null/compute/
slice.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4use std::ops::Range;
5
6use vortex_error::VortexResult;
7
8use crate::ArrayRef;
9use crate::IntoArray;
10use crate::arrays::NullArray;
11use crate::arrays::NullVTable;
12use crate::arrays::SliceReduce;
13
14impl SliceReduce for NullVTable {
15    fn slice(_array: &Self::Array, range: Range<usize>) -> VortexResult<Option<ArrayRef>> {
16        Ok(Some(NullArray::new(range.len()).into_array()))
17    }
18}