Skip to content

Commit c2e58dc

Browse files
committed
Remove operators
Signed-off-by: Nicholas Gates <[email protected]>
1 parent 956db13 commit c2e58dc

File tree

59 files changed

+269
-1378
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+269
-1378
lines changed

encodings/alp/src/alp/array.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ impl VTable for ALPVTable {
6464
type VisitorVTable = Self;
6565
type ComputeVTable = NotSupported;
6666
type EncodeVTable = Self;
67-
type OperatorVTable = NotSupported;
6867

6968
fn id(&self) -> ArrayId {
7069
ArrayId::new_ref("vortex.alp")
@@ -141,17 +140,17 @@ impl VTable for ALPVTable {
141140
)
142141
}
143142

144-
fn execute(array: &ALPArray, ctx: &mut dyn ExecutionCtx) -> VortexResult<Vector> {
145-
let encoded_vector = array.encoded().execute_batch(ctx)?;
143+
fn execute(array: &ALPArray, ctx: &mut ExecutionCtx) -> VortexResult<Vector> {
144+
let encoded_vector = array.encoded().execute(ctx)?;
146145

147146
let patches_vectors = if let Some(patches) = array.patches() {
148147
Some((
149-
patches.indices().execute_batch(ctx)?,
150-
patches.values().execute_batch(ctx)?,
148+
patches.indices().execute(ctx)?,
149+
patches.values().execute(ctx)?,
151150
patches
152151
.chunk_offsets()
153152
.as_ref()
154-
.map(|co| co.execute_batch(ctx))
153+
.map(|co| co.execute(ctx))
155154
.transpose()?,
156155
))
157156
} else {

encodings/alp/src/alp_rd/array.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ impl VTable for ALPRDVTable {
7777
type VisitorVTable = Self;
7878
type ComputeVTable = NotSupported;
7979
type EncodeVTable = Self;
80-
type OperatorVTable = NotSupported;
8180

8281
fn id(&self) -> ArrayId {
8382
ArrayId::new_ref("vortex.alprd")

encodings/bytebool/src/array.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ impl VTable for ByteBoolVTable {
5454
type VisitorVTable = Self;
5555
type ComputeVTable = NotSupported;
5656
type EncodeVTable = NotSupported;
57-
type OperatorVTable = NotSupported;
5857

5958
fn id(&self) -> ArrayId {
6059
ArrayId::new_ref("vortex.bytebool")

encodings/datetime-parts/src/array.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ impl VTable for DateTimePartsVTable {
8282
type VisitorVTable = Self;
8383
type ComputeVTable = NotSupported;
8484
type EncodeVTable = Self;
85-
type OperatorVTable = NotSupported;
8685

8786
fn id(&self) -> ArrayId {
8887
ArrayId::new_ref("vortex.datetimeparts")

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ impl VTable for DecimalBytePartsVTable {
6969
type VisitorVTable = Self;
7070
type ComputeVTable = NotSupported;
7171
type EncodeVTable = NotSupported;
72-
type OperatorVTable = NotSupported;
7372

7473
fn id(&self) -> ArrayId {
7574
ArrayId::new_ref("vortex.decimal_byte_parts")

encodings/fastlanes/src/bitpacking/vtable/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ impl VTable for BitPackedVTable {
6060
type VisitorVTable = Self;
6161
type ComputeVTable = NotSupported;
6262
type EncodeVTable = Self;
63-
type OperatorVTable = NotSupported;
6463

6564
fn id(&self) -> ArrayId {
6665
ArrayId::new_ref("fastlanes.bitpacked")
@@ -173,7 +172,7 @@ impl VTable for BitPackedVTable {
173172
)
174173
}
175174

176-
fn execute(array: &BitPackedArray, _ctx: &mut dyn ExecutionCtx) -> VortexResult<Vector> {
175+
fn execute(array: &BitPackedArray, _ctx: &mut ExecutionCtx) -> VortexResult<Vector> {
177176
Ok(unpack_to_primitive_vector(array).freeze().into())
178177
}
179178
}

encodings/fastlanes/src/delta/vtable/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ impl VTable for DeltaVTable {
5050
type VisitorVTable = Self;
5151
type ComputeVTable = NotSupported;
5252
type EncodeVTable = NotSupported;
53-
type OperatorVTable = NotSupported;
5453

5554
fn id(&self) -> ArrayId {
5655
ArrayId::new_ref("fastlanes.delta")

encodings/fastlanes/src/for/vtable/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
use std::fmt::Debug;
55
use std::fmt::Formatter;
66

7-
use vortex_array::DeserializeMetadata;
8-
use vortex_array::SerializeMetadata;
97
use vortex_array::serde::ArrayChildren;
108
use vortex_array::vtable;
119
use vortex_array::vtable::ArrayId;
@@ -14,10 +12,12 @@ use vortex_array::vtable::ArrayVTableExt;
1412
use vortex_array::vtable::NotSupported;
1513
use vortex_array::vtable::VTable;
1614
use vortex_array::vtable::ValidityVTableFromChild;
15+
use vortex_array::DeserializeMetadata;
16+
use vortex_array::SerializeMetadata;
1717
use vortex_buffer::BufferHandle;
1818
use vortex_dtype::DType;
19-
use vortex_error::VortexResult;
2019
use vortex_error::vortex_bail;
20+
use vortex_error::VortexResult;
2121
use vortex_scalar::Scalar;
2222
use vortex_scalar::ScalarValue;
2323

@@ -45,7 +45,6 @@ impl VTable for FoRVTable {
4545
type VisitorVTable = Self;
4646
type ComputeVTable = NotSupported;
4747
type EncodeVTable = Self;
48-
type OperatorVTable = Self;
4948

5049
fn id(&self) -> ArrayId {
5150
ArrayId::new_ref("fastlanes.for")

encodings/fastlanes/src/rle/vtable/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-FileCopyrightText: Copyright the Vortex contributors
33

44
use prost::Message;
5-
use vortex_array::ProstMetadata;
65
use vortex_array::serde::ArrayChildren;
76
use vortex_array::vtable;
87
use vortex_array::vtable::ArrayId;
@@ -11,6 +10,7 @@ use vortex_array::vtable::ArrayVTableExt;
1110
use vortex_array::vtable::NotSupported;
1211
use vortex_array::vtable::VTable;
1312
use vortex_array::vtable::ValidityVTableFromChildSliceHelper;
13+
use vortex_array::ProstMetadata;
1414
use vortex_buffer::BufferHandle;
1515
use vortex_dtype::DType;
1616
use vortex_dtype::Nullability;
@@ -56,7 +56,6 @@ impl VTable for RLEVTable {
5656
type VisitorVTable = Self;
5757
type ComputeVTable = NotSupported;
5858
type EncodeVTable = Self;
59-
type OperatorVTable = NotSupported;
6059

6160
fn id(&self) -> ArrayId {
6261
ArrayId::new_ref("fastlanes.rle")

encodings/fsst/src/array.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ impl VTable for FSSTVTable {
7676
type VisitorVTable = Self;
7777
type ComputeVTable = NotSupported;
7878
type EncodeVTable = Self;
79-
type OperatorVTable = NotSupported;
8079

8180
fn id(&self) -> ArrayId {
8281
ArrayId::new_ref("vortex.fsst")

0 commit comments

Comments
 (0)