pub enum TransformStep {
Select {
columns: Vec<String>,
},
Drop {
columns: Vec<String>,
},
Rename {
pairs: Vec<(String, String)>,
},
Cast {
column: String,
to: DataType,
mode: CastMode,
},
FillNull {
column: String,
value: Value,
},
WithLiteral {
name: String,
value: Value,
},
DeriveMulF64 {
name: String,
source: String,
factor: f64,
},
DeriveAddF64 {
name: String,
source: String,
delta: f64,
},
}Expand description
A transformation step in a TransformSpec.
Variants§
Select
Select/reorder columns (in the provided order).
Drop
Drop columns.
Rename
Rename columns (strict: source columns must exist).
Cast
Cast a column to a target type.
FillNull
Fill nulls in a column with a literal.
WithLiteral
Add a derived column with a literal value.
DeriveMulF64
Add a derived Float64 column: name = source * factor (nulls propagate).
DeriveAddF64
Add a derived Float64 column: name = source + delta (nulls propagate).
Trait Implementations§
Source§impl Clone for TransformStep
impl Clone for TransformStep
Source§fn clone(&self) -> TransformStep
fn clone(&self) -> TransformStep
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 moreSource§impl Debug for TransformStep
impl Debug for TransformStep
Source§impl<'de> Deserialize<'de> for TransformStep
impl<'de> Deserialize<'de> for TransformStep
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 PartialEq for TransformStep
impl PartialEq for TransformStep
Source§impl Serialize for TransformStep
impl Serialize for TransformStep
impl StructuralPartialEq for TransformStep
Auto Trait Implementations§
impl Freeze for TransformStep
impl RefUnwindSafe for TransformStep
impl Send for TransformStep
impl Sync for TransformStep
impl Unpin for TransformStep
impl UnwindSafe for TransformStep
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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