Struct mz_transform::TransformArgs
source · pub struct TransformArgs<'a> {
pub indexes: &'a dyn IndexOracle,
pub stats: &'a dyn StatisticsOracle,
pub global_id: Option<&'a GlobalId>,
}
Expand description
Arguments that get threaded through all transforms.
Fields§
§indexes: &'a dyn IndexOracle
The indexes accessible.
stats: &'a dyn StatisticsOracle
Statistical estiamtes.
global_id: Option<&'a GlobalId>
The global ID for this query (if it exists),
Implementations§
source§impl<'a> TransformArgs<'a>
impl<'a> TransformArgs<'a>
sourcepub fn anonymous(indexes: &'a dyn IndexOracle) -> Self
pub fn anonymous(indexes: &'a dyn IndexOracle) -> Self
Generates a TransformArgs
instance for the given IndexOracle
with no GlobalId
sourcepub fn with_id_and_stats(
indexes: &'a dyn IndexOracle,
stats: &'a dyn StatisticsOracle,
global_id: &'a GlobalId
) -> Self
pub fn with_id_and_stats( indexes: &'a dyn IndexOracle, stats: &'a dyn StatisticsOracle, global_id: &'a GlobalId ) -> Self
Geneates a TransformArgs
instance for the given IndexOracle
and StatisticsOracle
with a GlobalId
Trait Implementations§
source§impl<'a> Clone for TransformArgs<'a>
impl<'a> Clone for TransformArgs<'a>
source§fn clone(&self) -> TransformArgs<'a>
fn clone(&self) -> TransformArgs<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for TransformArgs<'a>
impl<'a> Debug for TransformArgs<'a>
source§impl<'a> Default for TransformArgs<'a>
impl<'a> Default for TransformArgs<'a>
impl<'a> Copy for TransformArgs<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TransformArgs<'a>
impl<'a> !Send for TransformArgs<'a>
impl<'a> !Sync for TransformArgs<'a>
impl<'a> Unpin for TransformArgs<'a>
impl<'a> !UnwindSafe for TransformArgs<'a>
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
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
.