vortex_array/arrays/chunked/vtable/array.rs
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4use vortex_dtype::DType;
5
6use crate::arrays::{ChunkedArray, ChunkedVTable};
7use crate::stats::StatsSetRef;
8use crate::vtable::ArrayVTable;
9
10impl ArrayVTable<ChunkedVTable> for ChunkedVTable {
11 fn len(array: &ChunkedArray) -> usize {
12 array.len
13 }
14
15 fn dtype(array: &ChunkedArray) -> &DType {
16 &array.dtype
17 }
18
19 fn stats(array: &ChunkedArray) -> StatsSetRef<'_> {
20 array.stats_set.to_ref(array.as_ref())
21 }
22}