Struct datafusion::exec::ExecutionContext
[−]
[src]
pub struct ExecutionContext { /* fields omitted */ }
Methods
impl ExecutionContext
[src]
pub fn local(data_dir: String) -> Self
[src]
pub fn remote(etcd: String) -> Self
[src]
pub fn define_schema(&mut self, name: &str, schema: &Schema)
[src]
pub fn define_function(&mut self, func: &ScalarFunction)
[src]
pub fn create_logical_plan(
&self,
sql: &str
) -> Result<Box<LogicalPlan>, ExecutionError>
[src]
&self,
sql: &str
) -> Result<Box<LogicalPlan>, ExecutionError>
pub fn sql(&mut self, sql: &str) -> Result<Box<DataFrame>, ExecutionError>
[src]
pub 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
pub fn register_table(&mut self, name: String, schema: Schema)
[src]
pub fn create_execution_plan(
&self,
data_dir: String,
plan: &LogicalPlan
) -> Result<Box<SimpleRelation>, ExecutionError>
[src]
&self,
data_dir: String,
plan: &LogicalPlan
) -> Result<Box<SimpleRelation>, ExecutionError>
pub fn udf(&self, name: &str, args: Vec<Expr>) -> Expr
[src]
pub fn write(
&self,
df: Box<DataFrame>,
filename: &str
) -> Result<usize, DataFrameError>
[src]
&self,
df: Box<DataFrame>,
filename: &str
) -> Result<usize, DataFrameError>
pub fn execute(
&self,
physical_plan: &PhysicalPlan
) -> Result<ExecutionResult, ExecutionError>
[src]
&self,
physical_plan: &PhysicalPlan
) -> Result<ExecutionResult, ExecutionError>
Trait Implementations
impl Debug for ExecutionContext
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
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