pub struct TableMetadataBuilder { /* private fields */ }Expand description
Builder for constructing TableMetadata instances.
Provides a fluent API for creating new tables with sensible defaults.
Implementations§
Source§impl TableMetadataBuilder
impl TableMetadataBuilder
Sourcepub fn new(location: impl Into<String>, schema: Schema) -> Self
pub fn new(location: impl Into<String>, schema: Schema) -> Self
Creates a new builder with the required location and schema.
Sourcepub fn with_partition_spec(self, spec: PartitionSpec) -> Self
pub fn with_partition_spec(self, spec: PartitionSpec) -> Self
Sets the partition spec.
Sourcepub fn with_property(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn with_property( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Adds a property to the table.
Sourcepub fn with_properties(
self,
props: impl IntoIterator<Item = (String, String)>,
) -> Self
pub fn with_properties( self, props: impl IntoIterator<Item = (String, String)>, ) -> Self
Adds multiple properties to the table.
Sourcepub fn build(self) -> TableMetadata
pub fn build(self) -> TableMetadata
Builds the TableMetadata instance.
Auto Trait Implementations§
impl Freeze for TableMetadataBuilder
impl RefUnwindSafe for TableMetadataBuilder
impl Send for TableMetadataBuilder
impl Sync for TableMetadataBuilder
impl Unpin for TableMetadataBuilder
impl UnwindSafe for TableMetadataBuilder
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> 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