Trait DataFrame
Source pub trait DataFrame:
Send
+ Sync
+ 'static {
Show 17 methods
// Required methods
fn as_any(&self) -> &(dyn Any + 'static);
fn schema(&self) -> Schema;
fn connection(&self) -> Arc<dyn Connection>;
fn fingerprint(&self) -> u64;
fn collect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<VegaFusionTable, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
// Provided methods
fn schema_df(&self) -> Result<DFSchema, VegaFusionError> { ... }
fn collect_flat<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<RecordBatch, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait { ... }
fn sort<'life0, 'async_trait>(
&'life0 self,
_exprs: Vec<Expr>,
_limit: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait { ... }
fn select<'life0, 'async_trait>(
&'life0 self,
_exprs: Vec<Expr>,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait { ... }
fn aggregate<'life0, 'async_trait>(
&'life0 self,
_group_exprs: Vec<Expr>,
_aggr_exprs: Vec<Expr>,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait { ... }
fn joinaggregate<'life0, 'async_trait>(
&'life0 self,
_group_expr: Vec<Expr>,
_aggr_expr: Vec<Expr>,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait { ... }
fn filter<'life0, 'async_trait>(
&'life0 self,
_predicate: Expr,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait { ... }
fn limit<'life0, 'async_trait>(
&'life0 self,
_limit: i32,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait { ... }
fn fold<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_fields: &'life1 [String],
_value_col: &'life2 str,
_key_col: &'life3 str,
_order_field: Option<&'life4 str>,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait { ... }
fn stack<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_field: &'life1 str,
_orderby: Vec<Expr>,
_groupby: &'life2 [String],
_start_field: &'life3 str,
_stop_field: &'life4 str,
_mode: StackMode,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait { ... }
fn impute<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_field: &'life1 str,
_value: ScalarValue,
_key: &'life2 str,
_groupby: &'life3 [String],
_order_field: Option<&'life4 str>,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait { ... }
fn with_index<'life0, 'life1, 'async_trait>(
&'life0 self,
index_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait { ... }
}