pub trait SchemaAdapter: Send + Sync {
// Required methods
fn map_column_index(
&self,
index: usize,
file_schema: &Schema,
) -> Option<usize>;
fn map_schema(
&self,
file_schema: &Schema,
) -> Result<(Arc<dyn SchemaMapper>, Vec<usize>)>;
}๐Deprecated since 52.0.0: SchemaAdapter has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.
Expand description
Deprecated: Creates SchemaMappers to map file-level RecordBatches to a table schema.
This trait has been removed. Use PhysicalExprAdapterFactory instead.
See upgrading.md for more details.
Required Methodsยง
Sourcefn map_column_index(&self, index: usize, file_schema: &Schema) -> Option<usize>
๐Deprecated since 52.0.0: SchemaAdapter has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.
fn map_column_index(&self, index: usize, file_schema: &Schema) -> Option<usize>
Map a column index in the table schema to a column index in a particular file schema.
Sourcefn map_schema(
&self,
file_schema: &Schema,
) -> Result<(Arc<dyn SchemaMapper>, Vec<usize>)>
๐Deprecated since 52.0.0: SchemaAdapter has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.
fn map_schema( &self, file_schema: &Schema, ) -> Result<(Arc<dyn SchemaMapper>, Vec<usize>)>
Creates a mapping for casting columns from the file schema to the table schema.