Skip to content

Commit 43f8e82

Browse files
committed
Rename to EqMode
Signed-off-by: Adam Gutglick <adam@spiraldb.com>
1 parent 5cb2127 commit 43f8e82

47 files changed

Lines changed: 192 additions & 192 deletions

File tree

Some content is hidden

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

encodings/alp/src/alp/array.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use std::hash::Hash;
88
use std::hash::Hasher;
99

1010
use prost::Message;
11-
use vortex_array::Accuracy;
1211
use vortex_array::Array;
1312
use vortex_array::ArrayEq;
1413
use vortex_array::ArrayHash;
@@ -17,6 +16,7 @@ use vortex_array::ArrayParts;
1716
use vortex_array::ArrayRef;
1817
use vortex_array::ArraySlots;
1918
use vortex_array::ArrayView;
19+
use vortex_array::EqMode;
2020
use vortex_array::ExecutionCtx;
2121
use vortex_array::ExecutionResult;
2222
use vortex_array::IntoArray;
@@ -55,14 +55,14 @@ use crate::alp::rules::RULES;
5555
pub type ALPArray = Array<ALP>;
5656

5757
impl ArrayHash for ALPData {
58-
fn array_hash<H: Hasher>(&self, state: &mut H, _accuracy: Accuracy) {
58+
fn array_hash<H: Hasher>(&self, state: &mut H, _accuracy: EqMode) {
5959
self.exponents.hash(state);
6060
self.patches_data.hash(state);
6161
}
6262
}
6363

6464
impl ArrayEq for ALPData {
65-
fn array_eq(&self, other: &Self, _accuracy: Accuracy) -> bool {
65+
fn array_eq(&self, other: &Self, _accuracy: EqMode) -> bool {
6666
self.exponents == other.exponents && self.patches_data == other.patches_data
6767
}
6868
}

encodings/alp/src/alp_rd/array.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use std::hash::Hasher;
99

1010
use itertools::Itertools;
1111
use prost::Message;
12-
use vortex_array::Accuracy;
1312
use vortex_array::Array;
1413
use vortex_array::ArrayEq;
1514
use vortex_array::ArrayHash;
@@ -19,6 +18,7 @@ use vortex_array::ArrayRef;
1918
use vortex_array::ArraySlots;
2019
use vortex_array::ArrayView;
2120
use vortex_array::Canonical;
21+
use vortex_array::EqMode;
2222
use vortex_array::ExecutionCtx;
2323
use vortex_array::ExecutionResult;
2424
use vortex_array::IntoArray;
@@ -75,15 +75,15 @@ pub struct ALPRDMetadata {
7575
}
7676

7777
impl ArrayHash for ALPRDData {
78-
fn array_hash<H: Hasher>(&self, state: &mut H, accuracy: Accuracy) {
78+
fn array_hash<H: Hasher>(&self, state: &mut H, accuracy: EqMode) {
7979
self.left_parts_dictionary.array_hash(state, accuracy);
8080
self.right_bit_width.hash(state);
8181
self.patches_data.hash(state);
8282
}
8383
}
8484

8585
impl ArrayEq for ALPRDData {
86-
fn array_eq(&self, other: &Self, accuracy: Accuracy) -> bool {
86+
fn array_eq(&self, other: &Self, accuracy: EqMode) -> bool {
8787
self.left_parts_dictionary
8888
.array_eq(&other.left_parts_dictionary, accuracy)
8989
&& self.right_bit_width == other.right_bit_width

encodings/bytebool/src/array.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use std::fmt::Display;
66
use std::fmt::Formatter;
77
use std::hash::Hasher;
88

9-
use vortex_array::Accuracy;
109
use vortex_array::Array;
1110
use vortex_array::ArrayEq;
1211
use vortex_array::ArrayHash;
@@ -15,6 +14,7 @@ use vortex_array::ArrayParts;
1514
use vortex_array::ArrayRef;
1615
use vortex_array::ArraySlots;
1716
use vortex_array::ArrayView;
17+
use vortex_array::EqMode;
1818
use vortex_array::ExecutionCtx;
1919
use vortex_array::ExecutionResult;
2020
use vortex_array::IntoArray;
@@ -45,13 +45,13 @@ use crate::kernel::PARENT_KERNELS;
4545
pub type ByteBoolArray = Array<ByteBool>;
4646

4747
impl ArrayHash for ByteBoolData {
48-
fn array_hash<H: Hasher>(&self, state: &mut H, accuracy: Accuracy) {
48+
fn array_hash<H: Hasher>(&self, state: &mut H, accuracy: EqMode) {
4949
self.buffer.array_hash(state, accuracy);
5050
}
5151
}
5252

5353
impl ArrayEq for ByteBoolData {
54-
fn array_eq(&self, other: &Self, accuracy: Accuracy) -> bool {
54+
fn array_eq(&self, other: &Self, accuracy: EqMode) -> bool {
5555
self.buffer.array_eq(&other.buffer, accuracy)
5656
}
5757
}

encodings/datetime-parts/src/array.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use std::fmt::Formatter;
77
use std::hash::Hasher;
88

99
use prost::Message;
10-
use vortex_array::Accuracy;
1110
use vortex_array::AnyCanonical;
1211
use vortex_array::Array;
1312
use vortex_array::ArrayEq;
@@ -16,6 +15,7 @@ use vortex_array::ArrayId;
1615
use vortex_array::ArrayParts;
1716
use vortex_array::ArrayRef;
1817
use vortex_array::ArrayView;
18+
use vortex_array::EqMode;
1919
use vortex_array::ExecutionCtx;
2020
use vortex_array::ExecutionResult;
2121
use vortex_array::IntoArray;
@@ -50,11 +50,11 @@ use crate::split_temporal;
5050
pub type DateTimePartsArray = Array<DateTimeParts>;
5151

5252
impl ArrayHash for DateTimePartsData {
53-
fn array_hash<H: Hasher>(&self, _state: &mut H, _accuracy: Accuracy) {}
53+
fn array_hash<H: Hasher>(&self, _state: &mut H, _accuracy: EqMode) {}
5454
}
5555

5656
impl ArrayEq for DateTimePartsData {
57-
fn array_eq(&self, _other: &Self, _accuracy: Accuracy) -> bool {
57+
fn array_eq(&self, _other: &Self, _accuracy: EqMode) -> bool {
5858
true
5959
}
6060
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ mod rules;
1313
mod slice;
1414

1515
use prost::Message as _;
16-
use vortex_array::Accuracy;
1716
use vortex_array::ArrayEq;
1817
use vortex_array::ArrayHash;
1918
use vortex_array::ArrayId;
2019
use vortex_array::ArrayRef;
20+
use vortex_array::EqMode;
2121
use vortex_array::ExecutionCtx;
2222
use vortex_array::ExecutionResult;
2323
use vortex_array::IntoArray;
@@ -53,11 +53,11 @@ use crate::decimal_byte_parts::rules::PARENT_RULES;
5353
pub type DecimalBytePartsArray = Array<DecimalByteParts>;
5454

5555
impl ArrayHash for DecimalBytePartsData {
56-
fn array_hash<H: Hasher>(&self, _state: &mut H, _accuracy: Accuracy) {}
56+
fn array_hash<H: Hasher>(&self, _state: &mut H, _accuracy: EqMode) {}
5757
}
5858

5959
impl ArrayEq for DecimalBytePartsData {
60-
fn array_eq(&self, _other: &Self, _accuracy: Accuracy) -> bool {
60+
fn array_eq(&self, _other: &Self, _accuracy: EqMode) -> bool {
6161
true
6262
}
6363
}

encodings/experimental/onpair/src/array.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use std::fmt::Formatter;
77
use std::hash::Hasher;
88

99
use prost::Message as _;
10-
use vortex_array::Accuracy;
1110
use vortex_array::Array;
1211
use vortex_array::ArrayEq;
1312
use vortex_array::ArrayHash;
@@ -16,6 +15,7 @@ use vortex_array::ArrayParts;
1615
use vortex_array::ArrayRef;
1716
use vortex_array::ArrayView;
1817
use vortex_array::Canonical;
18+
use vortex_array::EqMode;
1919
use vortex_array::ExecutionCtx;
2020
use vortex_array::ExecutionResult;
2121
use vortex_array::IntoArray;
@@ -196,14 +196,14 @@ impl Debug for OnPairData {
196196
}
197197

198198
impl ArrayHash for OnPairData {
199-
fn array_hash<H: Hasher>(&self, state: &mut H, accuracy: Accuracy) {
199+
fn array_hash<H: Hasher>(&self, state: &mut H, accuracy: EqMode) {
200200
self.dict_bytes.as_host().array_hash(state, accuracy);
201201
state.write_u32(self.bits);
202202
}
203203
}
204204

205205
impl ArrayEq for OnPairData {
206-
fn array_eq(&self, other: &Self, accuracy: Accuracy) -> bool {
206+
fn array_eq(&self, other: &Self, accuracy: EqMode) -> bool {
207207
self.bits == other.bits
208208
&& self
209209
.dict_bytes

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use std::hash::Hash;
55
use std::hash::Hasher;
66

77
use prost::Message;
8-
use vortex_array::Accuracy;
98
use vortex_array::Array;
109
use vortex_array::ArrayEq;
1110
use vortex_array::ArrayHash;
@@ -14,6 +13,7 @@ use vortex_array::ArrayParts;
1413
use vortex_array::ArrayRef;
1514
use vortex_array::ArraySlots;
1615
use vortex_array::ArrayView;
16+
use vortex_array::EqMode;
1717
use vortex_array::ExecutionCtx;
1818
use vortex_array::ExecutionResult;
1919
use vortex_array::IntoArray;
@@ -69,7 +69,7 @@ pub struct BitPackedMetadata {
6969
}
7070

7171
impl ArrayHash for BitPackedData {
72-
fn array_hash<H: Hasher>(&self, state: &mut H, accuracy: Accuracy) {
72+
fn array_hash<H: Hasher>(&self, state: &mut H, accuracy: EqMode) {
7373
self.offset.hash(state);
7474
self.bit_width.hash(state);
7575
self.packed.array_hash(state, accuracy);
@@ -78,7 +78,7 @@ impl ArrayHash for BitPackedData {
7878
}
7979

8080
impl ArrayEq for BitPackedData {
81-
fn array_eq(&self, other: &Self, accuracy: Accuracy) -> bool {
81+
fn array_eq(&self, other: &Self, accuracy: EqMode) -> bool {
8282
self.offset == other.offset
8383
&& self.bit_width == other.bit_width
8484
&& self.packed.array_eq(&other.packed, accuracy)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ use std::hash::Hash;
55
use std::hash::Hasher;
66

77
use prost::Message;
8-
use vortex_array::Accuracy;
98
use vortex_array::Array;
109
use vortex_array::ArrayEq;
1110
use vortex_array::ArrayHash;
1211
use vortex_array::ArrayId;
1312
use vortex_array::ArrayParts;
1413
use vortex_array::ArrayRef;
1514
use vortex_array::ArrayView;
15+
use vortex_array::EqMode;
1616
use vortex_array::ExecutionCtx;
1717
use vortex_array::ExecutionResult;
1818
use vortex_array::IntoArray;
@@ -58,13 +58,13 @@ pub struct DeltaMetadata {
5858
}
5959

6060
impl ArrayHash for DeltaData {
61-
fn array_hash<H: Hasher>(&self, state: &mut H, _accuracy: Accuracy) {
61+
fn array_hash<H: Hasher>(&self, state: &mut H, _accuracy: EqMode) {
6262
self.offset.hash(state);
6363
}
6464
}
6565

6666
impl ArrayEq for DeltaData {
67-
fn array_eq(&self, other: &Self, _accuracy: Accuracy) -> bool {
67+
fn array_eq(&self, other: &Self, _accuracy: EqMode) -> bool {
6868
self.offset == other.offset
6969
}
7070
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ use std::fmt::Debug;
55
use std::hash::Hash;
66
use std::hash::Hasher;
77

8-
use vortex_array::Accuracy;
98
use vortex_array::Array;
109
use vortex_array::ArrayEq;
1110
use vortex_array::ArrayHash;
1211
use vortex_array::ArrayId;
1312
use vortex_array::ArrayParts;
1413
use vortex_array::ArrayRef;
1514
use vortex_array::ArrayView;
15+
use vortex_array::EqMode;
1616
use vortex_array::ExecutionCtx;
1717
use vortex_array::ExecutionResult;
1818
use vortex_array::IntoArray;
@@ -50,13 +50,13 @@ mod validity;
5050
pub type FoRArray = Array<FoR>;
5151

5252
impl ArrayHash for FoRData {
53-
fn array_hash<H: Hasher>(&self, state: &mut H, _accuracy: Accuracy) {
53+
fn array_hash<H: Hasher>(&self, state: &mut H, _accuracy: EqMode) {
5454
self.reference.hash(state);
5555
}
5656
}
5757

5858
impl ArrayEq for FoRData {
59-
fn array_eq(&self, other: &Self, _accuracy: Accuracy) -> bool {
59+
fn array_eq(&self, other: &Self, _accuracy: EqMode) -> bool {
6060
self.reference == other.reference
6161
}
6262
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ use std::hash::Hash;
55
use std::hash::Hasher;
66

77
use prost::Message;
8-
use vortex_array::Accuracy;
98
use vortex_array::Array;
109
use vortex_array::ArrayEq;
1110
use vortex_array::ArrayHash;
1211
use vortex_array::ArrayId;
1312
use vortex_array::ArrayParts;
1413
use vortex_array::ArrayRef;
1514
use vortex_array::ArrayView;
15+
use vortex_array::EqMode;
1616
use vortex_array::ExecutionCtx;
1717
use vortex_array::ExecutionResult;
1818
use vortex_array::IntoArray;
@@ -65,13 +65,13 @@ pub struct RLEMetadata {
6565
}
6666

6767
impl ArrayHash for RLEData {
68-
fn array_hash<H: Hasher>(&self, state: &mut H, _accuracy: Accuracy) {
68+
fn array_hash<H: Hasher>(&self, state: &mut H, _accuracy: EqMode) {
6969
self.offset.hash(state);
7070
}
7171
}
7272

7373
impl ArrayEq for RLEData {
74-
fn array_eq(&self, other: &Self, _accuracy: Accuracy) -> bool {
74+
fn array_eq(&self, other: &Self, _accuracy: EqMode) -> bool {
7575
self.offset == other.offset
7676
}
7777
}

0 commit comments

Comments
 (0)