Struct mz_txn_wal::operator::DataSubscribe
source · pub struct DataSubscribe {
pub(crate) as_of: u64,
pub(crate) worker: Worker<Thread>,
data: ProbeHandle<u64>,
txns: ProbeHandle<u64>,
capture: Receiver<Event<u64, Vec<(String, u64, i64)>>>,
output: Vec<(String, u64, i64)>,
_tokens: Vec<PressOnDropButton>,
}
Expand description
A helper for subscribing to a data shard using the timely operators.
This could instead be a wrapper around a Subscribe, but it’s only used in tests and maelstrom, so do it by wrapping the timely operators to get additional coverage. For the same reason, hardcode the K, V, T, D types.
Fields§
§as_of: u64
§worker: Worker<Thread>
§data: ProbeHandle<u64>
§txns: ProbeHandle<u64>
§capture: Receiver<Event<u64, Vec<(String, u64, i64)>>>
§output: Vec<(String, u64, i64)>
§_tokens: Vec<PressOnDropButton>
Implementations§
source§impl DataSubscribe
impl DataSubscribe
sourcepub fn new(
name: &str,
client: PersistClient,
txns_id: ShardId,
data_id: ShardId,
as_of: u64,
until: Antichain<u64>,
use_global_txn_cache: bool,
) -> Self
pub fn new( name: &str, client: PersistClient, txns_id: ShardId, data_id: ShardId, as_of: u64, until: Antichain<u64>, use_global_txn_cache: bool, ) -> Self
Creates a new DataSubscribe.
pub(crate) fn capture_output(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataSubscribe
impl !RefUnwindSafe for DataSubscribe
impl !Send for DataSubscribe
impl !Sync for DataSubscribe
impl Unpin for DataSubscribe
impl !UnwindSafe for DataSubscribe
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Creates a shared type from an unshared type.
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign
, for types that do not implement AddAssign
.