Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
datafusion::logicalplan::Expr - Rust
[go: Go Back, main page]

[][src]Enum datafusion::logicalplan::Expr

pub enum Expr {
    Column(usize),
    Literal(ScalarValue),
    BinaryExpr {
        left: Rc<Expr>,
        op: Operator,
        right: Rc<Expr>,
    },
    IsNotNull(Rc<Expr>),
    IsNull(Rc<Expr>),
    Cast {
        expr: Rc<Expr>,
        data_type: DataType,
    },
    Sort {
        expr: Rc<Expr>,
        asc: bool,
    },
    ScalarFunction {
        name: String,
        args: Vec<Expr>,
        return_type: DataType,
    },
    AggregateFunction {
        name: String,
        args: Vec<Expr>,
        return_type: DataType,
    },
}

Relation Expression

Variants

Column(usize)

index into a value within the row or complex value

Literal(ScalarValue)

literal value

BinaryExpr

binary expression e.g. "age > 21"

Fields of BinaryExpr

left: Rc<Expr>op: Operatorright: Rc<Expr>
IsNotNull(Rc<Expr>)

unary IS NOT NULL

IsNull(Rc<Expr>)

unary IS NULL

Cast

cast a value to a different type

Fields of Cast

expr: Rc<Expr>data_type: DataType
Sort

sort expression

Fields of Sort

expr: Rc<Expr>asc: bool
ScalarFunction

scalar function

Fields of ScalarFunction

name: Stringargs: Vec<Expr>return_type: DataType
AggregateFunction

aggregate function

Fields of AggregateFunction

name: Stringargs: Vec<Expr>return_type: DataType

Methods

impl Expr
[src]

pub fn get_type(&self, schema: &Schema) -> DataType
[src]

pub fn cast_to(
    &self,
    cast_to_type: &DataType,
    schema: &Schema
) -> Result<Expr, String>
[src]

pub fn eq(&self, other: &Expr) -> Expr
[src]

pub fn not_eq(&self, other: &Expr) -> Expr
[src]

pub fn gt(&self, other: &Expr) -> Expr
[src]

pub fn gt_eq(&self, other: &Expr) -> Expr
[src]

pub fn lt(&self, other: &Expr) -> Expr
[src]

pub fn lt_eq(&self, other: &Expr) -> Expr
[src]

Trait Implementations

impl PartialEq<Expr> for Expr
[src]

impl Clone for Expr
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Expr
[src]

impl<'de> Deserialize<'de> for Expr
[src]

impl Serialize for Expr
[src]

Auto Trait Implementations

impl !Send for Expr

impl !Sync for Expr

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]