#[non_exhaustive]pub struct IcebergPartitionSpecBuilder { /* private fields */ }Expand description
A builder for IcebergPartitionSpec.
Implementations§
Source§impl IcebergPartitionSpecBuilder
impl IcebergPartitionSpecBuilder
Sourcepub fn fields(self, input: IcebergPartitionField) -> Self
pub fn fields(self, input: IcebergPartitionField) -> Self
Appends an item to fields.
To override the contents of this collection use set_fields.
The list of partition fields that define how the table data should be partitioned, including source fields and their transformations.
Sourcepub fn set_fields(self, input: Option<Vec<IcebergPartitionField>>) -> Self
pub fn set_fields(self, input: Option<Vec<IcebergPartitionField>>) -> Self
The list of partition fields that define how the table data should be partitioned, including source fields and their transformations.
Sourcepub fn get_fields(&self) -> &Option<Vec<IcebergPartitionField>>
pub fn get_fields(&self) -> &Option<Vec<IcebergPartitionField>>
The list of partition fields that define how the table data should be partitioned, including source fields and their transformations.
Sourcepub fn spec_id(self, input: i32) -> Self
pub fn spec_id(self, input: i32) -> Self
The unique identifier for this partition specification within the Iceberg table's metadata history.
Sourcepub fn set_spec_id(self, input: Option<i32>) -> Self
pub fn set_spec_id(self, input: Option<i32>) -> Self
The unique identifier for this partition specification within the Iceberg table's metadata history.
Sourcepub fn get_spec_id(&self) -> &Option<i32>
pub fn get_spec_id(&self) -> &Option<i32>
The unique identifier for this partition specification within the Iceberg table's metadata history.
Sourcepub fn build(self) -> Result<IcebergPartitionSpec, BuildError>
pub fn build(self) -> Result<IcebergPartitionSpec, BuildError>
Consumes the builder and constructs a IcebergPartitionSpec.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for IcebergPartitionSpecBuilder
impl Clone for IcebergPartitionSpecBuilder
Source§fn clone(&self) -> IcebergPartitionSpecBuilder
fn clone(&self) -> IcebergPartitionSpecBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IcebergPartitionSpecBuilder
impl Debug for IcebergPartitionSpecBuilder
Source§impl Default for IcebergPartitionSpecBuilder
impl Default for IcebergPartitionSpecBuilder
Source§fn default() -> IcebergPartitionSpecBuilder
fn default() -> IcebergPartitionSpecBuilder
Source§impl PartialEq for IcebergPartitionSpecBuilder
impl PartialEq for IcebergPartitionSpecBuilder
Source§fn eq(&self, other: &IcebergPartitionSpecBuilder) -> bool
fn eq(&self, other: &IcebergPartitionSpecBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IcebergPartitionSpecBuilder
Auto Trait Implementations§
impl Freeze for IcebergPartitionSpecBuilder
impl RefUnwindSafe for IcebergPartitionSpecBuilder
impl Send for IcebergPartitionSpecBuilder
impl Sync for IcebergPartitionSpecBuilder
impl Unpin for IcebergPartitionSpecBuilder
impl UnsafeUnpin for IcebergPartitionSpecBuilder
impl UnwindSafe for IcebergPartitionSpecBuilder
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
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>
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