Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions differential-dataflow/src/trace/wrappers/freeze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ use timely::progress::frontier::AntichainRef;
use crate::operators::arrange::Arranged;
use crate::trace::{TraceReader, BatchReader, Description};
use crate::trace::cursor::Cursor;
use crate::IntoOwned;

/// Freezes updates to an arrangement using a supplied function.
///
Expand Down Expand Up @@ -79,7 +78,7 @@ where
type Key<'a> = Tr::Key<'a>;
type Val<'a> = Tr::Val<'a>;
type Time = Tr::Time;
type TimeGat<'a> = Tr::TimeGat<'a>;
type TimeGat<'a> = &'a Tr::Time;
type Diff = Tr::Diff;
type DiffGat<'a> = Tr::DiffGat<'a>;

Expand Down Expand Up @@ -143,7 +142,7 @@ where
type Key<'a> = B::Key<'a>;
type Val<'a> = B::Val<'a>;
type Time = B::Time;
type TimeGat<'a> = B::TimeGat<'a>;
type TimeGat<'a> = &'a B::Time;
type Diff = B::Diff;
type DiffGat<'a> = B::DiffGat<'a>;

Expand Down Expand Up @@ -187,7 +186,7 @@ where
type Key<'a> = C::Key<'a>;
type Val<'a> = C::Val<'a>;
type Time = C::Time;
type TimeGat<'a> = C::TimeGat<'a>;
type TimeGat<'a> = &'a C::Time;
type Diff = C::Diff;
type DiffGat<'a> = C::DiffGat<'a>;

Expand All @@ -206,7 +205,7 @@ where
let func = &self.func;
self.cursor.map_times(storage, |time, diff| {
if let Some(time) = func(time) {
logic(<Self::TimeGat<'_> as IntoOwned>::borrow_as(&time), diff);
logic(&time, diff);
}
})
}
Expand Down Expand Up @@ -242,7 +241,7 @@ where
type Key<'a> = C::Key<'a>;
type Val<'a> = C::Val<'a>;
type Time = C::Time;
type TimeGat<'a> = C::TimeGat<'a>;
type TimeGat<'a> = &'a C::Time;
type Diff = C::Diff;
type DiffGat<'a> = C::DiffGat<'a>;

Expand All @@ -261,7 +260,7 @@ where
let func = &self.func;
self.cursor.map_times(&storage.batch, |time, diff| {
if let Some(time) = func(time) {
logic(<Self::TimeGat<'_> as IntoOwned>::borrow_as(&time), diff);
logic(&time, diff);
}
})
}
Expand Down
12 changes: 6 additions & 6 deletions differential-dataflow/src/trace/wrappers/frontier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl<Tr: TraceReader> TraceReader for TraceFrontier<Tr> {
type Key<'a> = Tr::Key<'a>;
type Val<'a> = Tr::Val<'a>;
type Time = Tr::Time;
type TimeGat<'a> = Tr::TimeGat<'a>;
type TimeGat<'a> = &'a Tr::Time;
type Diff = Tr::Diff;
type DiffGat<'a> = Tr::DiffGat<'a>;

Expand Down Expand Up @@ -86,7 +86,7 @@ impl<B: BatchReader> BatchReader for BatchFrontier<B> {
type Key<'a> = B::Key<'a>;
type Val<'a> = B::Val<'a>;
type Time = B::Time;
type TimeGat<'a> = B::TimeGat<'a>;
type TimeGat<'a> = &'a B::Time;
type Diff = B::Diff;
type DiffGat<'a> = B::DiffGat<'a>;

Expand Down Expand Up @@ -131,7 +131,7 @@ impl<C: Cursor> Cursor for CursorFrontier<C, C::Time> {
type Key<'a> = C::Key<'a>;
type Val<'a> = C::Val<'a>;
type Time = C::Time;
type TimeGat<'a> = C::TimeGat<'a>;
type TimeGat<'a> = &'a C::Time;
type Diff = C::Diff;
type DiffGat<'a> = C::DiffGat<'a>;

Expand All @@ -156,7 +156,7 @@ impl<C: Cursor> Cursor for CursorFrontier<C, C::Time> {
time.clone_onto(&mut temp);
temp.advance_by(since);
if !until.less_equal(&temp) {
logic(<Self::TimeGat<'_> as IntoOwned>::borrow_as(&temp), diff);
logic(&temp, diff);
}
})
}
Expand Down Expand Up @@ -197,7 +197,7 @@ where
type Key<'a> = C::Key<'a>;
type Val<'a> = C::Val<'a>;
type Time = C::Time;
type TimeGat<'a> = C::TimeGat<'a>;
type TimeGat<'a> = &'a C::Time;
type Diff = C::Diff;
type DiffGat<'a> = C::DiffGat<'a>;

Expand All @@ -222,7 +222,7 @@ where
time.clone_onto(&mut temp);
temp.advance_by(since);
if !until.less_equal(&temp) {
logic(<Self::TimeGat<'_> as IntoOwned>::borrow_as(&temp), diff);
logic(&temp, diff);
}
})
}
Expand Down
Loading