pub struct EvalSession<'a> {
pub params: &'a Params,
pub symbols: &'a SymbolTable,
pub functions: &'a Functions,
pub runtime_context: &'a RuntimeContext,
pub arena: Option<&'a QueryArena>,
pub identity: IdentityId,
pub is_aggregate_context: bool,
}Expand description
Session-scoped evaluation context — holds the 7 fields that are invariant
within a given operator. Provides factory methods to produce EvalContext
values that vary only in columns and row_count.
Fields§
§params: &'a Params§symbols: &'a SymbolTable§functions: &'a Functions§runtime_context: &'a RuntimeContext§arena: Option<&'a QueryArena>§identity: IdentityId§is_aggregate_context: boolImplementations§
Source§impl<'a> EvalSession<'a>
impl<'a> EvalSession<'a>
Sourcepub fn eval(&self, columns: Columns, row_count: usize) -> EvalContext<'a>
pub fn eval(&self, columns: Columns, row_count: usize) -> EvalContext<'a>
Main constructor — produces an EvalContext with target=None and take=None.
Sourcepub fn eval_empty(&self) -> EvalContext<'a>
pub fn eval_empty(&self) -> EvalContext<'a>
Shorthand for eval(Columns::empty(), 1).
Sourcepub fn eval_join(&self, columns: Columns) -> EvalContext<'a>
pub fn eval_join(&self, columns: Columns) -> EvalContext<'a>
Shorthand for eval(columns, 1) with take=Some(1).
Sourcepub fn from_transform(
ctx: &'a TransformContext<'_>,
stored: &'a QueryContext,
) -> Self
pub fn from_transform( ctx: &'a TransformContext<'_>, stored: &'a QueryContext, ) -> Self
Build from a TransformContext + stored QueryContext (volcano nodes with input).
Sourcepub fn from_query(ctx: &'a QueryContext) -> Self
pub fn from_query(ctx: &'a QueryContext) -> Self
Build from a QueryContext (without-input nodes, joins, inline).
Sourcepub fn testing() -> EvalSession<'static>
pub fn testing() -> EvalSession<'static>
Build a testing session with static empty values.
Trait Implementations§
Source§impl<'a> Clone for EvalSession<'a>
impl<'a> Clone for EvalSession<'a>
Source§fn clone(&self) -> EvalSession<'a>
fn clone(&self) -> EvalSession<'a>
Returns a duplicate 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 moreimpl<'a> Copy for EvalSession<'a>
Auto Trait Implementations§
impl<'a> Freeze for EvalSession<'a>
impl<'a> !RefUnwindSafe for EvalSession<'a>
impl<'a> !Send for EvalSession<'a>
impl<'a> !Sync for EvalSession<'a>
impl<'a> Unpin for EvalSession<'a>
impl<'a> UnsafeUnpin for EvalSession<'a>
impl<'a> !UnwindSafe for EvalSession<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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