pub struct ListingTableConfig {
    pub object_store: Arc<dyn ObjectStore>,
    pub table_path: String,
    pub file_schema: Option<SchemaRef>,
    pub options: Option<ListingOptions>,
}
Expand description

Configuration for creating a ‘ListingTable’

Fields

object_store: Arc<dyn ObjectStore>

ObjectStore that contains the files for the ListingTable.

table_path: String

Path on the ObjectStore for creating ListingTable.

file_schema: Option<SchemaRef>

Optional SchemaRef for the to be created ListingTable.

options: Option<ListingOptions>

Optional ListingOptions for the to be created ListingTable.

Implementations

Creates new ListingTableConfig. The SchemaRef and ListingOptions are inferred based on the suffix of the provided table_path.

Add schema to ListingTableConfig

Add listing_options to ListingTableConfig

Infer ListingOptions based on table_path suffix.

Infer SchemaRef based on table_path suffix. Requires self.options to be set prior to using.

Convenience wrapper for calling infer_options and infer_schema

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

Performs the conversion.

Performs the conversion.

Should always be Self

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.