pub struct CatalogTable { /* private fields */ }Expand description
Semantic table descriptor returned by a catalog.
Implementations§
Source§impl CatalogTable
impl CatalogTable
Sourcepub fn materialize_table(&self, db: Arc<Db>) -> CatalogResult<Table>
pub fn materialize_table(&self, db: Arc<Db>) -> CatalogResult<Table>
Materialize this captured catalog schema into one writable shard.
Calls for a shard must not run concurrently with other core schema updates.
Sourcepub fn new_write_builder(&self) -> TableWriteBuilder
pub fn new_write_builder(&self) -> TableWriteBuilder
Start building a portable writer initialization plan for this table.
Sourcepub fn writer_builder(
&self,
runtime: Config,
) -> CatalogResult<TableWriterBuilder>
pub fn writer_builder( &self, runtime: Config, ) -> CatalogResult<TableWriterBuilder>
Build an owned writer for this table using its catalog-managed shared storage.
Sourcepub fn refresh_writer(&self, table: &mut Table) -> CatalogResult<bool>
pub fn refresh_writer(&self, table: &mut Table) -> CatalogResult<bool>
Materialize this loaded catalog version into a writable table and refresh its local layout.
The caller controls which catalog version is loaded; this method never follows catalog CURRENT implicitly.
Sourcepub fn reader_builder(
&self,
runtime: Config,
) -> CatalogResult<TableReaderBuilder>
pub fn reader_builder( &self, runtime: Config, ) -> CatalogResult<TableReaderBuilder>
Build an owned snapshot reader for this table using its catalog-managed shared storage.
Sourcepub fn readonly_table_builder(
&self,
runtime: Config,
) -> CatalogResult<ReadOnlyTableBuilder>
pub fn readonly_table_builder( &self, runtime: Config, ) -> CatalogResult<ReadOnlyTableBuilder>
Build an owned shard snapshot table for this catalog table.
Sourcepub fn snapshot_committer(
&self,
runtime: Config,
max_pending_commits: usize,
) -> CatalogResult<TableSnapshotCommitter>
pub fn snapshot_committer( &self, runtime: Config, max_pending_commits: usize, ) -> CatalogResult<TableSnapshotCommitter>
Build an in-process committer in this table’s global snapshot namespace.
Sourcepub fn coordinator(&self, runtime: Config) -> CatalogResult<DbCoordinator>
pub fn coordinator(&self, runtime: Config) -> CatalogResult<DbCoordinator>
Open the core coordinator in this table’s global snapshot namespace.
Source§impl CatalogTable
impl CatalogTable
pub fn identifier(&self) -> &TableIdentifier
pub fn table_id(&self) -> TableId
pub fn catalog_schema_id(&self) -> CatalogSchemaId
pub fn schema(&self) -> &TableSchema
Trait Implementations§
Source§impl Clone for CatalogTable
impl Clone for CatalogTable
Auto Trait Implementations§
impl Freeze for CatalogTable
impl RefUnwindSafe for CatalogTable
impl Send for CatalogTable
impl Sync for CatalogTable
impl Unpin for CatalogTable
impl UnsafeUnpin for CatalogTable
impl UnwindSafe for CatalogTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DebugAny for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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