pub fn arrange_from_upsert<G, V, F, Tr>(
    stream: &Stream<G, (Tr::KeyOwned, Option<V>, G::Timestamp)>,
    name: &str,
    from: F
) -> Arranged<G, TraceAgent<Tr>>
where G: Scope<Timestamp = Tr::Time>, Tr: Trace + TraceReader<Diff = isize> + 'static, Tr::KeyOwned: ExchangeData + Hashable + Hash, V: ExchangeData, F: Fn(Tr::Val<'_>) -> V + 'static, Tr::Time: TotalOrder + ExchangeData, Tr::Batch: Batch, Tr::Builder: Builder<Input = ((Tr::KeyOwned, V), Tr::Time, Tr::Diff)>,
Expand description

Arrange data from a stream of keyed upserts.

The input should be a stream of timestamped pairs of Key and Option. The contents of the collection are defined key-by-key, where each optional value in sequence either replaces or removes the existing value, should it exist.

This method is only implemented for totally ordered times, as we do not yet understand what a “sequence” of upserts would mean for partially ordered timestamps.