Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
SessionState in datafusion::execution::context - Rust
[go: Go Back, main page]

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

Execution context for registering data sources and executing queries

Implementations§

Returns new SessionState using the provided configuration and runtime

Replace the default query planner

Replace the optimizer rules

Replace the physical optimizer rules

Adds a new OptimizerRule

Creates a LogicalPlan from the provided SQL string

See SessionContext::sql for a higher-level interface that also handles DDL

Optimizes the logical plan by applying optimizer rules.

Creates a physical plan from a logical plan.

Note: this first calls Self::optimize on the provided plan

Return the session ID

Return the runtime env

Return the execution properties

Return the SessionConfig

Return the physical optimizers

return the configuration options

Get a new TaskContext to run in this session

Return catalog list

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

Create a new task context instance from SessionState

Converts to this type from the input type.
Set of all available udfs.
Returns a reference to the udf named name.
Returns a reference to the udaf named name.
Return the time at which the query execution started. This time is used as the value for now()

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

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
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.