Trait iceberg::transform::TransformFunction
source · pub trait TransformFunction: Send + Sync {
// Required methods
fn transform(&self, input: ArrayRef) -> Result<ArrayRef>;
fn transform_literal(&self, input: &Datum) -> Result<Option<Datum>>;
// Provided method
fn transform_literal_result(&self, input: &Datum) -> Result<Datum> { ... }
}
Expand description
TransformFunction is a trait that defines the interface for all transform functions.
Required Methods§
Provided Methods§
sourcefn transform_literal_result(&self, input: &Datum) -> Result<Datum>
fn transform_literal_result(&self, input: &Datum) -> Result<Datum>
A thin wrapper around transform_literal
to return an error even when it’s None
.