pub struct PlanningTableCatalog { /* private fields */ }Expand description
Arrow schemas for tables that DataFusion must resolve while planning SQL for distributed placement. Schemas are planning-only (no row data).
Implementations§
Source§impl PlanningTableCatalog
impl PlanningTableCatalog
Sourcepub fn insert(&mut self, table: impl Into<String>, schema: SchemaRef)
pub fn insert(&mut self, table: impl Into<String>, schema: SchemaRef)
Registers (or replaces) one table’s schema for SQL planning.
Sourcepub fn with_table(self, table: impl Into<String>, schema: SchemaRef) -> Self
pub fn with_table(self, table: impl Into<String>, schema: SchemaRef) -> Self
Builder-style registration.
Sourcepub fn table_names(&self) -> Vec<&str>
pub fn table_names(&self) -> Vec<&str>
Registered table names (sorted for stable diagnostics).
Trait Implementations§
Source§impl Clone for PlanningTableCatalog
impl Clone for PlanningTableCatalog
Source§fn clone(&self) -> PlanningTableCatalog
fn clone(&self) -> PlanningTableCatalog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlanningTableCatalog
impl Debug for PlanningTableCatalog
Source§impl Default for PlanningTableCatalog
impl Default for PlanningTableCatalog
Source§fn default() -> PlanningTableCatalog
fn default() -> PlanningTableCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlanningTableCatalog
impl RefUnwindSafe for PlanningTableCatalog
impl Send for PlanningTableCatalog
impl Sync for PlanningTableCatalog
impl Unpin for PlanningTableCatalog
impl UnsafeUnpin for PlanningTableCatalog
impl UnwindSafe for PlanningTableCatalog
Blanket Implementations§
impl<T> Allocation for T
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
Converts
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>
Converts
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