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

pub trait PhysicalExpr: Send + Sync + Display + Debug {
    fn as_any(&self) -> &dyn Any;
fn data_type(&self, input_schema: &Schema) -> Result<DataType>;
fn nullable(&self, input_schema: &Schema) -> Result<bool>;
fn evaluate(&self, batch: &RecordBatch) -> Result<ColumnarValue>; }

Expression that can be evaluated against a RecordBatch A Physical expression knows its type, nullability and how to evaluate itself.

Required methods

fn as_any(&self) -> &dyn Any[src]

Returns the physical expression as Any so that it can be downcast to a specific implementation.

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]

Determine whether this expression is nullable, given the schema of the input

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

Evaluate an expression against a RecordBatch

Loading content...

Implementors

impl PhysicalExpr for BinaryExpr[src]

fn as_any(&self) -> &dyn Any[src]

Return a reference to Any that can be used for downcasting

impl PhysicalExpr for CaseExpr[src]

fn as_any(&self) -> &dyn Any[src]

Return a reference to Any that can be used for downcasting

impl PhysicalExpr for CastExpr[src]

fn as_any(&self) -> &dyn Any[src]

Return a reference to Any that can be used for downcasting

impl PhysicalExpr for Column[src]

fn as_any(&self) -> &dyn Any[src]

Return a reference to Any that can be used for downcasting

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<ColumnarValue>[src]

Evaluate the expression

impl PhysicalExpr for InListExpr[src]

fn as_any(&self) -> &dyn Any[src]

Return a reference to Any that can be used for downcasting

impl PhysicalExpr for IsNotNullExpr[src]

fn as_any(&self) -> &dyn Any[src]

Return a reference to Any that can be used for downcasting

impl PhysicalExpr for IsNullExpr[src]

fn as_any(&self) -> &dyn Any[src]

Return a reference to Any that can be used for downcasting

impl PhysicalExpr for Literal[src]

fn as_any(&self) -> &dyn Any[src]

Return a reference to Any that can be used for downcasting

impl PhysicalExpr for NegativeExpr[src]

fn as_any(&self) -> &dyn Any[src]

Return a reference to Any that can be used for downcasting

impl PhysicalExpr for NotExpr[src]

fn as_any(&self) -> &dyn Any[src]

Return a reference to Any that can be used for downcasting

impl PhysicalExpr for TryCastExpr[src]

fn as_any(&self) -> &dyn Any[src]

Return a reference to Any that can be used for downcasting

impl PhysicalExpr for ScalarFunctionExpr[src]

fn as_any(&self) -> &dyn Any[src]

Return a reference to Any that can be used for downcasting

Loading content...