Struct spark_connect_rs::spark::SetOperation
source · pub struct SetOperation {
pub left_input: Option<Box<Relation>>,
pub right_input: Option<Box<Relation>>,
pub set_op_type: i32,
pub is_all: Option<bool>,
pub by_name: Option<bool>,
pub allow_missing_columns: Option<bool>,
}Expand description
Relation of type [SetOperation]
Fields§
§left_input: Option<Box<Relation>>(Required) Left input relation for a Set operation.
right_input: Option<Box<Relation>>(Required) Right input relation for a Set operation.
set_op_type: i32(Required) The Set operation type.
is_all: Option<bool>(Optional) If to remove duplicate rows.
True to preserve all results. False to remove duplicate rows.
by_name: Option<bool>(Optional) If to perform the Set operation based on name resolution.
Only UNION supports this option.
allow_missing_columns: Option<bool>(Optional) If to perform the Set operation and allow missing columns.
Only UNION supports this option.
Implementations§
source§impl SetOperation
impl SetOperation
sourcepub fn set_op_type(&self) -> SetOpType
pub fn set_op_type(&self) -> SetOpType
Returns the enum value of set_op_type, or the default if the field is set to an invalid enum value.
sourcepub fn set_set_op_type(&mut self, value: SetOpType)
pub fn set_set_op_type(&mut self, value: SetOpType)
Sets set_op_type to the provided enum value.
sourcepub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns the value of is_all, or the default value if is_all is unset.
sourcepub fn by_name(&self) -> bool
pub fn by_name(&self) -> bool
Returns the value of by_name, or the default value if by_name is unset.
sourcepub fn allow_missing_columns(&self) -> bool
pub fn allow_missing_columns(&self) -> bool
Returns the value of allow_missing_columns, or the default value if allow_missing_columns is unset.
Trait Implementations§
source§impl Clone for SetOperation
impl Clone for SetOperation
source§fn clone(&self) -> SetOperation
fn clone(&self) -> SetOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SetOperation
impl Debug for SetOperation
source§impl Default for SetOperation
impl Default for SetOperation
source§impl Message for SetOperation
impl Message for SetOperation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.source§impl PartialEq for SetOperation
impl PartialEq for SetOperation
source§fn eq(&self, other: &SetOperation) -> bool
fn eq(&self, other: &SetOperation) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SetOperation
Auto Trait Implementations§
impl RefUnwindSafe for SetOperation
impl Send for SetOperation
impl Sync for SetOperation
impl Unpin for SetOperation
impl UnwindSafe for SetOperation
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request