Skip to main content

SchemaAdapterFactory

Trait SchemaAdapterFactory 

Source
pub trait SchemaAdapterFactory:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn create(
        &self,
        projected_table_schema: SchemaRef,
        table_schema: SchemaRef,
    ) -> Box<dyn SchemaAdapter>;

    // Provided method
    fn create_with_projected_schema(
        &self,
        projected_table_schema: SchemaRef,
    ) -> Box<dyn SchemaAdapter> { ... }
}
👎Deprecated since 52.0.0:

SchemaAdapter has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.

Expand description

Deprecated: Factory for creating SchemaAdapter.

This trait has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.

Required Methods§

Source

fn create( &self, projected_table_schema: SchemaRef, table_schema: SchemaRef, ) -> Box<dyn SchemaAdapter>

👎Deprecated since 52.0.0:

SchemaAdapter has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.

Create a SchemaAdapter

Provided Methods§

Source

fn create_with_projected_schema( &self, projected_table_schema: SchemaRef, ) -> Box<dyn SchemaAdapter>

👎Deprecated since 52.0.0:

SchemaAdapter has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.

Create a SchemaAdapter using only the projected table schema.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§