pub enum PgCatalogTable {
Static(Arc<ArrowTable>),
Dynamic(Arc<dyn PartitionStream>),
Empty(EmptyTable),
}Expand description
an enum to wrap all kinds of tables
Variants§
Implementations§
Source§impl PgCatalogTable
impl PgCatalogTable
pub fn try_into_table_provider(&self) -> Result<Arc<dyn TableProvider>>
pub fn schema(&self) -> SchemaRef
Trait Implementations§
Source§impl From<Arc<ArrowTable>> for PgCatalogTable
impl From<Arc<ArrowTable>> for PgCatalogTable
Source§fn from(t: Arc<ArrowTable>) -> PgCatalogTable
fn from(t: Arc<ArrowTable>) -> PgCatalogTable
Converts to this type from the input type.
Source§impl From<EmptyTable> for PgCatalogTable
impl From<EmptyTable> for PgCatalogTable
Source§fn from(t: EmptyTable) -> PgCatalogTable
fn from(t: EmptyTable) -> PgCatalogTable
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PgCatalogTable
impl !RefUnwindSafe for PgCatalogTable
impl Send for PgCatalogTable
impl Sync for PgCatalogTable
impl Unpin for PgCatalogTable
impl UnsafeUnpin for PgCatalogTable
impl !UnwindSafe for PgCatalogTable
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
Mutably borrows from an owned value. Read more
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