#[non_exhaustive]pub struct IcebergPartitionField {
pub source_id: i32,
pub transform: String,
pub name: String,
pub field_id: i32,
}Expand description
Defines a single partition field within an Iceberg partition specification, including the source field, transformation function, partition name, and unique identifier.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_id: i32The identifier of the source field from the table schema that this partition field is based on.
transform: StringThe transformation function applied to the source field to create the partition, such as identity, bucket, truncate, year, month, day, or hour.
name: StringThe name of the partition field as it will appear in the partitioned table structure.
field_id: i32The unique identifier assigned to this partition field within the Iceberg table's partition specification.
Implementations§
Source§impl IcebergPartitionField
impl IcebergPartitionField
Sourcepub fn source_id(&self) -> i32
pub fn source_id(&self) -> i32
The identifier of the source field from the table schema that this partition field is based on.
Sourcepub fn transform(&self) -> &str
pub fn transform(&self) -> &str
The transformation function applied to the source field to create the partition, such as identity, bucket, truncate, year, month, day, or hour.
Source§impl IcebergPartitionField
impl IcebergPartitionField
Sourcepub fn builder() -> IcebergPartitionFieldBuilder
pub fn builder() -> IcebergPartitionFieldBuilder
Creates a new builder-style object to manufacture IcebergPartitionField.
Trait Implementations§
Source§impl Clone for IcebergPartitionField
impl Clone for IcebergPartitionField
Source§fn clone(&self) -> IcebergPartitionField
fn clone(&self) -> IcebergPartitionField
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 IcebergPartitionField
impl Debug for IcebergPartitionField
Source§impl PartialEq for IcebergPartitionField
impl PartialEq for IcebergPartitionField
Source§fn eq(&self, other: &IcebergPartitionField) -> bool
fn eq(&self, other: &IcebergPartitionField) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IcebergPartitionField
Auto Trait Implementations§
impl Freeze for IcebergPartitionField
impl RefUnwindSafe for IcebergPartitionField
impl Send for IcebergPartitionField
impl Sync for IcebergPartitionField
impl Unpin for IcebergPartitionField
impl UnsafeUnpin for IcebergPartitionField
impl UnwindSafe for IcebergPartitionField
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