Struct datafusion::logical_plan::DFField
source · [−]pub struct DFField { /* private fields */ }
Expand description
DFField wraps an Arrow field and adds an optional qualifier
Implementations
sourceimpl DFField
impl DFField
sourcepub fn new(
qualifier: Option<&str>,
name: &str,
data_type: DataType,
nullable: bool
) -> DFField
pub fn new(
qualifier: Option<&str>,
name: &str,
data_type: DataType,
nullable: bool
) -> DFField
Creates a new DFField
sourcepub fn from_qualified(qualifier: &str, field: Field) -> DFField
pub fn from_qualified(qualifier: &str, field: Field) -> DFField
Create a qualified field from an existing Arrow field
sourcepub fn is_nullable(&self) -> bool
pub fn is_nullable(&self) -> bool
Indicates whether this DFField
supports null values
sourcepub fn qualified_name(&self) -> String
pub fn qualified_name(&self) -> String
Returns a string to the DFField
’s qualified name
sourcepub fn qualified_column(&self) -> Column
pub fn qualified_column(&self) -> Column
Builds a qualified column based on self
sourcepub fn unqualified_column(&self) -> Column
pub fn unqualified_column(&self) -> Column
Builds an unqualified column based on self
sourcepub fn strip_qualifier(self) -> DFField
pub fn strip_qualifier(self) -> DFField
Return field with qualifier stripped
Trait Implementations
impl Eq for DFField
impl StructuralEq for DFField
impl StructuralPartialEq for DFField
Auto Trait Implementations
impl RefUnwindSafe for DFField
impl Send for DFField
impl Sync for DFField
impl Unpin for DFField
impl UnwindSafe for DFField
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more