Struct datafusion::execution::dataframe_impl::DataFrameImpl [−][src]
pub struct DataFrameImpl { /* fields omitted */ }
Implementation of DataFrame API
Implementations
impl DataFrameImpl
[src]
impl DataFrameImpl
[src]pub fn new(
ctx_state: Arc<Mutex<ExecutionContextState>>,
plan: &LogicalPlan
) -> Self
[src]
ctx_state: Arc<Mutex<ExecutionContextState>>,
plan: &LogicalPlan
) -> Self
Create a new Table based on an existing logical plan
Trait Implementations
impl DataFrame for DataFrameImpl
[src]
impl DataFrame for DataFrameImpl
[src]fn select_columns(&self, columns: &[&str]) -> Result<Arc<dyn DataFrame>>
[src]
Apply a projection based on a list of column names
fn select(&self, expr_list: Vec<Expr>) -> Result<Arc<dyn DataFrame>>
[src]
Create a projection based on arbitrary expressions
fn filter(&self, predicate: Expr) -> Result<Arc<dyn DataFrame>>
[src]
Create a filter based on a predicate expression
fn aggregate(
&self,
group_expr: Vec<Expr>,
aggr_expr: Vec<Expr>
) -> Result<Arc<dyn DataFrame>>
[src]
&self,
group_expr: Vec<Expr>,
aggr_expr: Vec<Expr>
) -> Result<Arc<dyn DataFrame>>
Perform an aggregate query
fn limit(&self, n: usize) -> Result<Arc<dyn DataFrame>>
[src]
Limit the number of rows
fn sort(&self, expr: Vec<Expr>) -> Result<Arc<dyn DataFrame>>
[src]
Sort by specified sorting expressions
fn join(
&self,
right: Arc<dyn DataFrame>,
join_type: JoinType,
left_cols: &[&str],
right_cols: &[&str]
) -> Result<Arc<dyn DataFrame>>
[src]
&self,
right: Arc<dyn DataFrame>,
join_type: JoinType,
left_cols: &[&str],
right_cols: &[&str]
) -> Result<Arc<dyn DataFrame>>
Join with another DataFrame
fn repartition(
&self,
partitioning_scheme: Partitioning
) -> Result<Arc<dyn DataFrame>>
[src]
&self,
partitioning_scheme: Partitioning
) -> Result<Arc<dyn DataFrame>>
fn to_logical_plan(&self) -> LogicalPlan
[src]
Convert to logical plan
fn collect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<RecordBatch>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<RecordBatch>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn collect_partitioned<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<RecordBatch>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<RecordBatch>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn schema(&self) -> &DFSchema
[src]
Returns the schema from the logical plan
fn explain(&self, verbose: bool) -> Result<Arc<dyn DataFrame>>
[src]
fn registry(&self) -> Arc<dyn FunctionRegistry>
[src]
fn union(&self, dataframe: Arc<dyn DataFrame>) -> Result<Arc<dyn DataFrame>>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DataFrameImpl
impl !RefUnwindSafe for DataFrameImpl
impl Send for DataFrameImpl
impl Send for DataFrameImpl
impl Sync for DataFrameImpl
impl Sync for DataFrameImpl
impl Unpin for DataFrameImpl
impl Unpin for DataFrameImpl
impl !UnwindSafe for DataFrameImpl
impl !UnwindSafe for DataFrameImpl