Skip to content

Commit a3bf1db

Browse files
Remove (key, val) structure from merge batchers (#548)
1 parent b846f73 commit a3bf1db

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/trace/implementations/merge_batcher.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,14 @@ impl<T> VecMerger<T> {
264264
}
265265
}
266266

267-
impl<K, V, T, R> Merger for VecMerger<((K, V), T, R)>
267+
impl<D, T, R> Merger for VecMerger<(D, T, R)>
268268
where
269-
K: Data,
270-
V: Data,
269+
D: Data,
271270
T: Ord + PartialOrder + Clone + 'static,
272271
R: Semigroup + 'static,
273272
{
274273
type Time = T;
275-
type Chunk = Vec<((K, V), T, R)>;
274+
type Chunk = Vec<(D, T, R)>;
276275

277276
fn merge(&mut self, list1: Vec<Self::Chunk>, list2: Vec<Self::Chunk>, output: &mut Vec<Self::Chunk>, stash: &mut Vec<Self::Chunk>) {
278277
let mut list1 = list1.into_iter();

src/trace/implementations/merge_batcher_col.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,14 @@ impl<T: Columnation> ColumnationMerger<T> {
5252
}
5353
}
5454

55-
impl<K, V, T, R> Merger for ColumnationMerger<((K, V), T, R)>
55+
impl<D, T, R> Merger for ColumnationMerger<(D, T, R)>
5656
where
57-
K: Columnation + Ord + Data,
58-
V: Columnation + Ord + Data,
57+
D: Columnation + Ord + Data,
5958
T: Columnation + Ord + PartialOrder + Data,
6059
R: Columnation + Semigroup + 'static,
6160
{
6261
type Time = T;
63-
type Chunk = TimelyStack<((K, V), T, R)>;
62+
type Chunk = TimelyStack<(D, T, R)>;
6463

6564
fn merge(&mut self, list1: Vec<Self::Chunk>, list2: Vec<Self::Chunk>, output: &mut Vec<Self::Chunk>, stash: &mut Vec<Self::Chunk>) {
6665
let mut list1 = list1.into_iter();

0 commit comments

Comments
 (0)