Struct proof_of_sql::sql::transform::ResultExpr
source · pub struct ResultExpr { /* private fields */ }Expand description
The result expression is used to transform the results of a query
Note: both the transformation and result_schema are
mutually exclusive operations. So they must not be set at the same time.
Implementations§
source§impl ResultExpr
impl ResultExpr
sourcepub fn new(transformation: Box<dyn RecordBatchExpr>) -> Self
pub fn new(transformation: Box<dyn RecordBatchExpr>) -> Self
Create a new ResultExpr node with the provided transformation to be applied to the input record batch.
source§impl ResultExpr
impl ResultExpr
sourcepub fn transform_results(
&self,
result_batch: RecordBatch,
) -> Option<RecordBatch>
pub fn transform_results( &self, result_batch: RecordBatch, ) -> Option<RecordBatch>
Transform the RecordBatch result of a query using the transformation expression
Trait Implementations§
source§impl Debug for ResultExpr
impl Debug for ResultExpr
source§impl<'de> Deserialize<'de> for ResultExpr
impl<'de> Deserialize<'de> for ResultExpr
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl DynPartialEq for ResultExpr
impl DynPartialEq for ResultExpr
source§impl PartialEq for ResultExpr
impl PartialEq for ResultExpr
source§fn eq(&self, other: &ResultExpr) -> bool
fn eq(&self, other: &ResultExpr) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ResultExpr
impl Serialize for ResultExpr
impl StructuralPartialEq for ResultExpr
Auto Trait Implementations§
impl Freeze for ResultExpr
impl !RefUnwindSafe for ResultExpr
impl Send for ResultExpr
impl Sync for ResultExpr
impl Unpin for ResultExpr
impl !UnwindSafe for ResultExpr
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> 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 more