Struct datafusion::logical_plan::DFSchema [−][src]
pub struct DFSchema { /* fields omitted */ }
DFSchema wraps an Arrow schema and adds relation names
Implementations
impl DFSchema
[src]
impl DFSchema
[src]pub fn empty() -> Self
[src]
Creates an empty DFSchema
pub fn new(fields: Vec<DFField>) -> Result<Self>
[src]
Create a new DFSchema
pub fn try_from_qualified(qualifier: &str, schema: &Schema) -> Result<Self>
[src]
Create a DFSchema
from an Arrow schema
pub fn join(&self, schema: &DFSchema) -> Result<Self>
[src]
Combine two schemas
pub fn fields(&self) -> &Vec<DFField>
[src]
Get a list of fields
pub fn field(&self, i: usize) -> &DFField
[src]
Returns an immutable reference of a specific Field
instance selected using an
offset within the internal fields
vector
pub fn index_of(&self, name: &str) -> Result<usize>
[src]
Find the index of the column with the given name
pub fn field_with_name(
&self,
relation_name: Option<&str>,
name: &str
) -> Result<DFField>
[src]
&self,
relation_name: Option<&str>,
name: &str
) -> Result<DFField>
Find the field with the given name
pub fn field_with_unqualified_name(&self, name: &str) -> Result<DFField>
[src]
Find the field with the given name
pub fn field_with_qualified_name(
&self,
relation_name: &str,
name: &str
) -> Result<DFField>
[src]
&self,
relation_name: &str,
name: &str
) -> Result<DFField>
Find the field with the given qualified name
Trait Implementations
impl StructuralEq for DFSchema
[src]
impl StructuralEq for DFSchema
[src]impl StructuralPartialEq for DFSchema
[src]
impl StructuralPartialEq for DFSchema
[src]Auto Trait Implementations
impl RefUnwindSafe for DFSchema
impl RefUnwindSafe for DFSchema
impl UnwindSafe for DFSchema
impl UnwindSafe for DFSchema
Blanket Implementations
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,