pub struct UnboundPartitionSpecBuilder { /* private fields */ }
Expand description
Create a new UnboundPartitionSpec
Implementations§
Source§impl UnboundPartitionSpecBuilder
impl UnboundPartitionSpecBuilder
Sourcepub fn with_spec_id(self, spec_id: i32) -> Self
pub fn with_spec_id(self, spec_id: i32) -> Self
Set the spec id for the partition spec.
Sourcepub fn add_partition_field(
self,
source_id: i32,
target_name: impl ToString,
transformation: Transform,
) -> Result<Self>
pub fn add_partition_field( self, source_id: i32, target_name: impl ToString, transformation: Transform, ) -> Result<Self>
Add a new partition field to the partition spec from an unbound partition field.
Sourcepub fn add_partition_fields(
self,
fields: impl IntoIterator<Item = UnboundPartitionField>,
) -> Result<Self>
pub fn add_partition_fields( self, fields: impl IntoIterator<Item = UnboundPartitionField>, ) -> Result<Self>
Add multiple partition fields to the partition spec.
Sourcepub fn build(self) -> UnboundPartitionSpec
pub fn build(self) -> UnboundPartitionSpec
Build the unbound partition spec.
Trait Implementations§
Source§impl Debug for UnboundPartitionSpecBuilder
impl Debug for UnboundPartitionSpecBuilder
Source§impl Default for UnboundPartitionSpecBuilder
impl Default for UnboundPartitionSpecBuilder
Source§fn default() -> UnboundPartitionSpecBuilder
fn default() -> UnboundPartitionSpecBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnboundPartitionSpecBuilder
impl RefUnwindSafe for UnboundPartitionSpecBuilder
impl Send for UnboundPartitionSpecBuilder
impl Sync for UnboundPartitionSpecBuilder
impl Unpin for UnboundPartitionSpecBuilder
impl UnwindSafe for UnboundPartitionSpecBuilder
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
§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