pub struct DFSchema { /* private fields */ }
Expand description

DFSchema wraps an Arrow schema and adds relation names

Implementations

Creates an empty DFSchema

👎 Deprecated since 7.0.0:

please use new_with_metadata instead

Create a new DFSchema

Create a new DFSchema

Create a DFSchema from an Arrow schema

Create a new schema that contains the fields from this schema followed by the fields from the supplied schema. An error will be returned if there are duplicate field names.

Modify this schema by appending the fields from the supplied schema, ignoring any duplicate fields.

Get a list of fields

Returns an immutable reference of a specific Field instance selected using an offset within the internal fields vector

👎 Deprecated since 8.0.0:

please use index_of_column_by_name instead

Find the index of the column with the given unqualified name

Find the index of the column with the given qualifier and name

Find the field with the given name

Find all fields having the given qualifier

Find all fields match the given name

Find the field with the given name

Find the field with the given qualified name

Find the field with the given qualified column

Check to see if unqualified field names matches field names in Arrow schema

Check to see if fields in 2 Arrow schemas are compatible

Strip all field qualifier in schema

Replace all field qualifier with new value in schema

Get list of fully-qualified field names in this schema

Get metadata of this schema

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Is this column reference nullable?

What is the datatype of this column?

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Create a DFSchema from an Arrow schema

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.