Struct datafusion::logical_plan::DFSchema[][src]

pub struct DFSchema { /* fields omitted */ }

DFSchema wraps an Arrow schema and adds relation names

Implementations

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]

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]

Find the field with the given qualified name

Trait Implementations

impl Clone for DFSchema[src]

impl Debug for DFSchema[src]

impl Display for DFSchema[src]

impl Eq for DFSchema[src]

impl Into<Arc<Schema>> for DFSchema[src]

impl Into<Schema> for DFSchema[src]

fn into(self) -> Schema[src]

Convert a schema into a DFSchema

impl PartialEq<DFSchema> for DFSchema[src]

impl StructuralEq for DFSchema[src]

impl StructuralPartialEq for DFSchema[src]

impl TryFrom<Schema> for DFSchema[src]

Create a DFSchema from an Arrow schema

type Error = DataFusionError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,