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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.