Skip to content

Commit 0a26469

Browse files
committed
fixup! half_join: add unsafe variant
1 parent 16847ac commit 0a26469

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dogsdogsdogs/src/operators/half_join.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ where
117117
///
118118
/// for each `((key, val2), time2, diff2)` present in `arrangement`, where
119119
/// `time2` is less than `initial_time` *UNDER THE TOTAL ORDER ON TIMES*.
120-
pub fn half_join_internal_unsafe<G, V, Tr, FF, CF, DOut, I, S>(
120+
pub fn half_join_internal_unsafe<G, V, Tr, FF, CF, DOut, ROut, I, S>(
121121
stream: &Collection<G, (Tr::Key, V, G::Timestamp), Tr::R>,
122122
mut arrangement: Arranged<G, Tr>,
123123
frontier_func: FF,
124124
comparison: CF,
125125
mut output_func: S,
126-
) -> Collection<G, DOut, Tr::R>
126+
) -> Collection<G, DOut, ROut>
127127
where
128128
G: Scope,
129129
G::Timestamp: Lattice,
@@ -137,7 +137,8 @@ where
137137
FF: Fn(&G::Timestamp) -> G::Timestamp + 'static,
138138
CF: Fn(&G::Timestamp, &G::Timestamp) -> bool + 'static,
139139
DOut: Clone+'static,
140-
I: IntoIterator<Item=(DOut, G::Timestamp, Tr::R)>,
140+
ROut: Monoid,
141+
I: IntoIterator<Item=(DOut, G::Timestamp, ROut)>,
141142
S: FnMut(&Tr::Key, &V, &Tr::Val, &G::Timestamp, &G::Timestamp, &Tr::R, &Tr::R)-> I + 'static,
142143
{
143144
// No need to block physical merging for this operator.

0 commit comments

Comments
 (0)