Skip to content

Expose TraceAgent::operator #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2023
Merged
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
11 changes: 8 additions & 3 deletions src/operators/arrange/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::cell::RefCell;
use std::collections::VecDeque;

use timely::dataflow::Scope;
use timely::dataflow::operators::generic::source;
use timely::dataflow::operators::generic::{OperatorInfo, source};
use timely::progress::Timestamp;
use timely::progress::{Antichain, frontier::AntichainRef};
use timely::dataflow::operators::CapabilitySet;
Expand Down Expand Up @@ -38,7 +38,7 @@ where
physical_compaction: Antichain<Tr::Time>,
temp_antichain: Antichain<Tr::Time>,

operator: ::timely::dataflow::operators::generic::OperatorInfo,
operator: OperatorInfo,
logging: Option<::logging::Logger>,
}

Expand Down Expand Up @@ -89,7 +89,7 @@ where
Tr::Time: Timestamp+Lattice,
{
/// Creates a new agent from a trace reader.
pub fn new(trace: Tr, operator: ::timely::dataflow::operators::generic::OperatorInfo, logging: Option<::logging::Logger>) -> (Self, TraceWriter<Tr>)
pub fn new(trace: Tr, operator: OperatorInfo, logging: Option<::logging::Logger>) -> (Self, TraceWriter<Tr>)
where
Tr: Trace,
Tr::Batch: Batch,
Expand Down Expand Up @@ -155,6 +155,11 @@ where
reference.0.activate();
reference
}

/// The [OperatorInfo] of the underlying Timely operator
pub fn operator(&self) -> &OperatorInfo {
&self.operator
}
}

impl<Tr> TraceAgent<Tr>
Expand Down