Struct datafusion::exec::ExecutionContext
[−]
[src]
pub struct ExecutionContext { /* fields omitted */ }
Methods
impl ExecutionContext
[src]
fn new(data_dir: String) -> Self
[src]
fn define_schema(&mut self, name: &str, schema: &Schema)
[src]
fn define_function(&mut self, func: &ScalarFunction)
[src]
fn create_logical_plan(
&self,
sql: &str
) -> Result<Box<LogicalPlan>, ExecutionError>
[src]
&self,
sql: &str
) -> Result<Box<LogicalPlan>, ExecutionError>
fn sql(&mut self, sql: &str) -> Result<Box<DataFrame>, ExecutionError>
[src]
fn load(
&self,
filename: &str,
schema: &Schema
) -> Result<Box<DataFrame>, ExecutionError>
[src]
&self,
filename: &str,
schema: &Schema
) -> Result<Box<DataFrame>, ExecutionError>
Open a CSV file TODO: this is building a relational plan not an execution plan so shouldn't really be here
fn register_table(&mut self, name: String, schema: Schema)
[src]
fn create_execution_plan(
&self,
plan: &LogicalPlan
) -> Result<Box<SimpleRelation>, ExecutionError>
[src]
&self,
plan: &LogicalPlan
) -> Result<Box<SimpleRelation>, ExecutionError>
fn udf(&self, name: &str, args: Vec<Expr>) -> Expr
[src]
Trait Implementations
impl Debug for ExecutionContext
[src]
impl Clone for ExecutionContext
[src]
fn clone(&self) -> ExecutionContext
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more