pub struct Table { /* private fields */ }Expand description
Table represents a table in the catalog.
Implementations§
Source§impl Table
impl Table
Sourcepub fn builder() -> TableBuilder
pub fn builder() -> TableBuilder
Returns a TableBuilder to build a table
Sourcepub fn identifier(&self) -> &TableIdent
pub fn identifier(&self) -> &TableIdent
Returns table identifier.
Sourcepub fn metadata(&self) -> &TableMetadata
pub fn metadata(&self) -> &TableMetadata
Returns current metadata.
Sourcepub fn metadata_ref(&self) -> TableMetadataRef
pub fn metadata_ref(&self) -> TableMetadataRef
Returns current metadata ref.
Sourcepub fn metadata_location(&self) -> Option<&str>
pub fn metadata_location(&self) -> Option<&str>
Returns current metadata location.
Sourcepub fn metadata_location_result(&self) -> Result<&str>
pub fn metadata_location_result(&self) -> Result<&str>
Returns current metadata location in a result.
Sourcepub fn encryption_manager(&self) -> Option<&EncryptionManager>
pub fn encryption_manager(&self) -> Option<&EncryptionManager>
Returns the EncryptionManager for this table, if encryption is
configured.
A manager is present iff the table metadata has the
encryption.key-id property set and a KeyManagementClient was
supplied to the TableBuilder.
Sourcepub fn scan(&self) -> TableScanBuilder<'_>
pub fn scan(&self) -> TableScanBuilder<'_>
Creates a table scan.
Sourcepub fn inspect(&self) -> MetadataTable<'_>
pub fn inspect(&self) -> MetadataTable<'_>
Creates a metadata table which provides table-like APIs for inspecting metadata.
See MetadataTable for more details.
Sourcepub fn readonly(&self) -> bool
pub fn readonly(&self) -> bool
Returns the flag indicating whether the Table is readonly or not
Sourcepub fn current_schema_ref(&self) -> SchemaRef
pub fn current_schema_ref(&self) -> SchemaRef
Returns the current schema as a shared reference.
Sourcepub fn manifest_list_reader(&self, snapshot: &SnapshotRef) -> ManifestListReader
pub fn manifest_list_reader(&self, snapshot: &SnapshotRef) -> ManifestListReader
Creates a ManifestListReader for the given snapshot.
Sourcepub fn reader_builder(&self) -> ArrowReaderBuilder
pub fn reader_builder(&self) -> ArrowReaderBuilder
Create a reader for the table.
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§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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