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 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 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§
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,
§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,
Forward to the method defined on the type
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,
Forward to the method defined on the type
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> ⓘ
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