[][src]Trait datafusion::execution::physical_plan::PhysicalExpr

pub trait PhysicalExpr: Send + Sync {
    fn name(&self) -> String;
fn data_type(&self, input_schema: &Schema) -> Result<DataType>;
fn nullable(&self, input_schema: &Schema) -> Result<bool>;
fn evaluate(&self, batch: &RecordBatch) -> Result<ArrayRef>; fn to_schema_field(&self, input_schema: &Schema) -> Result<Field> { ... } }

Expression that can be evaluated against a RecordBatch

Required methods

fn name(&self) -> String

Get the name to use in a schema to represent the result of this expression

fn data_type(&self, input_schema: &Schema) -> Result<DataType>

Get the data type of this expression, given the schema of the input

fn nullable(&self, input_schema: &Schema) -> Result<bool>

Decide whehter this expression is nullable, given the schema of the input

fn evaluate(&self, batch: &RecordBatch) -> Result<ArrayRef>

Evaluate an expression against a RecordBatch

Loading content...

Provided methods

fn to_schema_field(&self, input_schema: &Schema) -> Result<Field>

Generate schema Field type for this expression

Loading content...

Implementors

impl PhysicalExpr for Alias[src]

impl PhysicalExpr for BinaryExpr[src]

impl PhysicalExpr for CastExpr[src]

impl PhysicalExpr for Column[src]

fn name(&self) -> String[src]

Get the name to use in a schema to represent the result of this expression

fn data_type(&self, input_schema: &Schema) -> Result<DataType>[src]

Get the data type of this expression, given the schema of the input

fn nullable(&self, input_schema: &Schema) -> Result<bool>[src]

Decide whehter this expression is nullable, given the schema of the input

fn evaluate(&self, batch: &RecordBatch) -> Result<ArrayRef>[src]

Evaluate the expression

impl PhysicalExpr for Literal[src]

impl PhysicalExpr for NotExpr[src]

impl PhysicalExpr for ScalarFunctionExpr[src]

Loading content...