Skip to content

Commit 203dc4d

Browse files
committed
chore[vortex-array]: remove SerdeVTable
Signed-off-by: Joe Isaacs <[email protected]>
1 parent a75178c commit 203dc4d

File tree

7 files changed

+15
-11
lines changed

7 files changed

+15
-11
lines changed

encodings/decimal-byte-parts/src/decimal_byte_parts/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ use vortex_array::vtable::{
1515
ValidityHelper, ValidityVTableFromChild, VisitorVTable,
1616
};
1717
use vortex_array::{
18-
Array, ArrayBufferVisitor, ArrayChildVisitor, ArrayEq, ArrayHash, ArrayRef, Canonical, EncodingId, EncodingRef, IntoArray, Precision, ProstMetadata,
19-
SerializeMetadata, ToCanonical, vtable,
18+
Array, ArrayBufferVisitor, ArrayChildVisitor, ArrayEq, ArrayHash, ArrayRef, Canonical,
19+
EncodingId, EncodingRef, IntoArray, Precision, ProstMetadata, SerializeMetadata, ToCanonical,
20+
vtable,
2021
};
2122
use vortex_buffer::ByteBuffer;
2223
use vortex_dtype::{DType, DecimalDType, PType, match_each_signed_integer_ptype};

encodings/fastlanes/src/delta/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ impl VTable for DeltaVTable {
8585
) -> VortexResult<DeltaArray> {
8686
assert_eq!(children.len(), 2);
8787
let ptype = PType::try_from(dtype)?;
88-
let lanes =
89-
match_each_unsigned_integer_ptype!(ptype, |T| { <T as FastLanes>::LANES });
88+
let lanes = match_each_unsigned_integer_ptype!(ptype, |T| { <T as FastLanes>::LANES });
9089

9190
// Compute the length of the bases array
9291
let deltas_len = usize::try_from(metadata.0.deltas_len)

encodings/sparse/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ use vortex_array::compute::{Operator, compare, fill_null, filter, sub_scalar};
1212
use vortex_array::patches::{Patches, PatchesMetadata};
1313
use vortex_array::serde::ArrayChildren;
1414
use vortex_array::stats::{ArrayStats, StatsSetRef};
15-
use vortex_array::vtable::{ArrayVTable, EncodeVTable, NotSupported, VTable, ValidityVTable, VisitorVTable};
15+
use vortex_array::vtable::{
16+
ArrayVTable, EncodeVTable, NotSupported, VTable, ValidityVTable, VisitorVTable,
17+
};
1618
use vortex_array::{
1719
Array, ArrayBufferVisitor, ArrayChildVisitor, ArrayEq, ArrayHash, ArrayRef, Canonical,
1820
EncodingId, EncodingRef, IntoArray, Precision, ProstMetadata, ToCanonical, vtable,

encodings/zigzag/src/array.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ use vortex_buffer::ByteBuffer;
1818
use vortex_dtype::{DType, PType, match_each_unsigned_integer_ptype};
1919
use vortex_error::{VortexExpect, VortexResult, vortex_bail};
2020
use vortex_scalar::Scalar;
21-
22-
use crate::zigzag_encode;
2321
use zigzag::ZigZag as ExternalZigZag;
2422

2523
use crate::compute::ZigZagEncoded;
26-
use crate::zigzag_decode;
24+
use crate::{zigzag_decode, zigzag_encode};
2725

2826
vtable!(ZigZag);
2927

vortex-array/src/arrays/dict/array.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ use vortex_mask::{AllOr, Mask};
1212
use crate::builders::dict::dict_encode;
1313
use crate::serde::ArrayChildren;
1414
use crate::stats::{ArrayStats, StatsSetRef};
15-
use crate::vtable::{ArrayVTable, EncodeVTable, NotSupported, VTable, ValidityVTable, VisitorVTable};
15+
use crate::vtable::{
16+
ArrayVTable, EncodeVTable, NotSupported, VTable, ValidityVTable, VisitorVTable,
17+
};
1618
use crate::{
1719
Array, ArrayBufferVisitor, ArrayChildVisitor, ArrayEq, ArrayHash, ArrayRef, Canonical,
1820
DeserializeMetadata, EncodingId, EncodingRef, Precision, ProstMetadata, SerializeMetadata,

vortex-array/src/arrays/masked/vtable/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ use crate::arrays::masked::MaskedArray;
1515
use crate::serde::ArrayChildren;
1616
use crate::validity::Validity;
1717
use crate::vtable::{NotSupported, VTable, ValidityVTableFromValidityHelper, VisitorVTable};
18-
use crate::{ArrayBufferVisitor, ArrayChildVisitor, EmptyMetadata, EncodingId, EncodingRef, vtable};
18+
use crate::{
19+
ArrayBufferVisitor, ArrayChildVisitor, EmptyMetadata, EncodingId, EncodingRef, vtable,
20+
};
1921

2022
vtable!(Masked);
2123

vortex-array/src/vtable/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use std::hash::Hasher;
55

66
use vortex_dtype::DType;
77

8+
use crate::Precision;
89
use crate::stats::StatsSetRef;
910
use crate::vtable::VTable;
10-
use crate::Precision;
1111

1212
pub trait ArrayVTable<V: VTable> {
1313
fn len(array: &V::Array) -> usize;

0 commit comments

Comments
 (0)