pub struct DefaultSchemaAdapterFactory;DefaultSchemaAdapterFactory has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.
Expand description
Deprecated: Default SchemaAdapterFactory for mapping schemas.
This struct has been removed.
Use PhysicalExprAdapterFactory instead to customize scans via
FileScanConfigBuilder, i.e. if you had implemented a custom SchemaAdapter
and passed that into FileScanConfigBuilder / ParquetSource.
Use BatchAdapter if you want to map a stream of RecordBatches
between one schema and another, i.e. if you were calling SchemaMapper::map_batch manually.
See upgrading.md for more details.
Implementationsยง
Sourceยงimpl DefaultSchemaAdapterFactory
impl DefaultSchemaAdapterFactory
Sourcepub fn from_schema(table_schema: SchemaRef) -> Box<dyn SchemaAdapter>
๐Deprecated since 52.0.0: DefaultSchemaAdapterFactory has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.
pub fn from_schema(table_schema: SchemaRef) -> Box<dyn SchemaAdapter>
DefaultSchemaAdapterFactory has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.
Deprecated: Create a new factory for mapping batches from a file schema to a table schema.
Trait Implementationsยง
Sourceยงimpl SchemaAdapterFactory for DefaultSchemaAdapterFactory
impl SchemaAdapterFactory for DefaultSchemaAdapterFactory
Sourceยงfn create(
&self,
projected_table_schema: SchemaRef,
_table_schema: SchemaRef,
) -> Box<dyn SchemaAdapter>
fn create( &self, projected_table_schema: SchemaRef, _table_schema: SchemaRef, ) -> Box<dyn SchemaAdapter>
SchemaAdapter has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.
SchemaAdapterSourceยงfn create_with_projected_schema(
&self,
projected_table_schema: SchemaRef,
) -> Box<dyn SchemaAdapter>
fn create_with_projected_schema( &self, projected_table_schema: SchemaRef, ) -> Box<dyn SchemaAdapter>
SchemaAdapter has been removed. Use PhysicalExprAdapterFactory instead. See upgrading.md for more details.
SchemaAdapter using only the projected table schema.Sourceยงimpl Clone for DefaultSchemaAdapterFactory
impl Clone for DefaultSchemaAdapterFactory
Sourceยงfn clone(&self) -> DefaultSchemaAdapterFactory
fn clone(&self) -> DefaultSchemaAdapterFactory
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for DefaultSchemaAdapterFactory
impl Debug for DefaultSchemaAdapterFactory
Sourceยงimpl Default for DefaultSchemaAdapterFactory
impl Default for DefaultSchemaAdapterFactory
Sourceยงfn default() -> DefaultSchemaAdapterFactory
fn default() -> DefaultSchemaAdapterFactory
Auto Trait Implementationsยง
impl Freeze for DefaultSchemaAdapterFactory
impl RefUnwindSafe for DefaultSchemaAdapterFactory
impl Send for DefaultSchemaAdapterFactory
impl Sync for DefaultSchemaAdapterFactory
impl Unpin for DefaultSchemaAdapterFactory
impl UnsafeUnpin for DefaultSchemaAdapterFactory
impl UnwindSafe for DefaultSchemaAdapterFactory
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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