Parser

Struct Parser 

Source
pub struct Parser {
    pub params: ParserParams,
    /* private fields */
}

Fields§

§params: ParserParams

Implementations§

Source§

impl Parser

Source

pub fn new(params: ParserParams) -> Self

Source

pub fn get_quote(&self) -> Option<char>

Source

pub fn get_as_quote(&self) -> Option<char>

Source

pub fn parser_dsl(&self, dsl: DSL, dataset: &Dataset) -> Result<Statement>

Source

pub fn parser_view_define(&self, statement: Statement) -> Result<TableWithJoins>

Source

pub fn execute_filter( &self, params: WorkflowParams, filter: Workflow, ) -> Result<WorkflowParams>

Source

pub fn execute_transform( &self, params: WorkflowParams, transform: Workflow, ) -> Result<WorkflowParams>

Source

pub fn execute_sort( &self, params: WorkflowParams, sort: Workflow, ) -> Result<WorkflowParams>

Source

pub fn execute_view( &self, params: WorkflowParams, view: Workflow, ) -> Result<WorkflowParams>

Source

pub fn parse_dataset_define(&self, dataset: &Dataset) -> Result<TableWithJoins>

Source

pub fn parse_dataview_define( &self, dataset: &Dataset, view: Vec<DataView>, ) -> Result<TableWithJoins>

Source

pub fn replace_default_table( &self, origin: Statement, review_table: TableWithJoins, ) -> Result<Statement>

Source

pub fn rewrite_data_view_table_with_join( &self, origin_table: TableWithJoins, review_table: TableWithJoins, ) -> Result<TableWithJoins>

Source

pub fn create_data_view_projection( &self, fid_map: HashMap<String, String>, ) -> Vec<SelectItem>

Source

pub fn parse_workflow( &self, table: TableWithJoins, dsl: DSL, ) -> Result<Statement>

Source

pub fn get_projection_and_group_expr( &self, query: &Query, alias: &HashMap<String, SelectItem>, ) -> (Vec<SelectItem>, Vec<Expr>, HashMap<String, SelectItem>)

Source

pub fn get_transform_expr( &self, transform: Transform, alias: &HashMap<String, SelectItem>, ) -> Result<(Vec<SelectItem>, Vec<SelectItem>, HashMap<String, SelectItem>)>

Trait Implementations§

Source§

impl Default for Parser

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !Freeze for Parser

§

impl RefUnwindSafe for Parser

§

impl Send for Parser

§

impl Sync for Parser

§

impl Unpin for Parser

§

impl UnwindSafe for Parser

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.