pub trait Transform {
type Source: Array;
type Target: Array;
// Required method
fn transform(&self, source: &Self::Source) -> Result<Self::Target, Error>;
// Provided method
fn then<T2>(self, next: T2) -> Compose<Self, T2>
where Self: Sized,
T2: Transform<Source = Self::Target> { ... }
}Expand description
A transformation that converts one Arrow array type to another.
Transformations are read-only operations that may fail (e.g., missing field, type mismatch).
They can be composed using the then method to create complex transformation pipelines.