pub struct PartitionField {
pub field_id: String,
pub source_ids: Vec<i32>,
pub transform: Option<Box<PartitionTransform>>,
pub expression: Option<String>,
pub result_type: Box<JsonArrowDataType>,
}Expand description
PartitionField : Partition field definition
Fields§
§field_id: StringUnique identifier for this partition field (must not be renamed)
source_ids: Vec<i32>Field IDs of the source columns in the schema
transform: Option<Box<PartitionTransform>>Well-known partition transform. Exactly one of transform or expression must be specified.
expression: Option<String>DataFusion SQL expression using col0, col1, … as column references. Exactly one of transform or expression must be specified.
result_type: Box<JsonArrowDataType>The output type of the partition value (JsonArrowDataType format)
Implementations§
Source§impl PartitionField
impl PartitionField
Sourcepub fn new(
field_id: String,
source_ids: Vec<i32>,
result_type: JsonArrowDataType,
) -> PartitionField
pub fn new( field_id: String, source_ids: Vec<i32>, result_type: JsonArrowDataType, ) -> PartitionField
Partition field definition
Trait Implementations§
Source§impl Clone for PartitionField
impl Clone for PartitionField
Source§fn clone(&self) -> PartitionField
fn clone(&self) -> PartitionField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartitionField
impl Debug for PartitionField
Source§impl Default for PartitionField
impl Default for PartitionField
Source§fn default() -> PartitionField
fn default() -> PartitionField
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartitionField
impl<'de> Deserialize<'de> for PartitionField
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartitionField, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartitionField, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PartitionField
impl PartialEq for PartitionField
Source§impl Serialize for PartitionField
impl Serialize for PartitionField
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PartitionField
Auto Trait Implementations§
impl Freeze for PartitionField
impl RefUnwindSafe for PartitionField
impl Send for PartitionField
impl Sync for PartitionField
impl Unpin for PartitionField
impl UnsafeUnpin for PartitionField
impl UnwindSafe for PartitionField
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,
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