pub struct Table { /* private fields */ }Expand description
A high-level representation of a SuperTable.
Implementations§
Source§impl Table
impl Table
Sourcepub fn new(
identifier: impl Into<String>,
catalog: Arc<dyn Catalog>,
metadata: TableMetadata,
storage: Storage,
) -> Self
pub fn new( identifier: impl Into<String>, catalog: Arc<dyn Catalog>, metadata: TableMetadata, storage: Storage, ) -> Self
Creates a new table instance.
Sourcepub fn metadata(&self) -> &TableMetadata
pub fn metadata(&self) -> &TableMetadata
Returns the table metadata.
Sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
Returns the table identifier.
Sourcepub fn new_transaction(&self) -> Transaction
pub fn new_transaction(&self) -> Transaction
Starts a new transaction on this table.
Sourcepub fn at_snapshot(&self, snapshot_id: i64) -> Result<Table>
pub fn at_snapshot(&self, snapshot_id: i64) -> Result<Table>
Returns a view of the table at a specific snapshot.
Sourcepub fn as_of(&self, timestamp_ms: i64) -> Result<Table>
pub fn as_of(&self, timestamp_ms: i64) -> Result<Table>
Returns a view of the table as of a specific timestamp.
Sourcepub fn new_scan(&self) -> ScanPlanner<'_>
pub fn new_scan(&self) -> ScanPlanner<'_>
Creates a new scan planner for this table’s current snapshot.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Table
impl !RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl !UnwindSafe for Table
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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