1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
// Copyright Materialize, Inc. and contributors. All rights reserved.
//
// Use of this software is governed by the Business Source License
// included in the LICENSE file.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0.
//! Timely and Differential Dataflow operators for persisting and replaying
//! data.
pub mod input;
pub mod replay;
pub mod source;
pub mod stream;
pub mod upsert;
pub(crate) fn split_ok_err<K, V>(
x: (Result<(K, V), String>, u64, isize),
) -> Result<((K, V), u64, isize), (String, u64, isize)> {
match x {
(Ok(kv), ts, diff) => Ok((kv, ts, diff)),
(Err(err), ts, diff) => Err((err, ts, diff)),
}
}