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
Implementors
impl PhysicalExpr for BinaryExpr
[src]
impl PhysicalExpr for BinaryExpr
[src]impl PhysicalExpr for CaseExpr
[src]
impl PhysicalExpr for CaseExpr
[src]impl PhysicalExpr for CastExpr
[src]
impl PhysicalExpr for CastExpr
[src]impl PhysicalExpr for Column
[src]
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]
impl PhysicalExpr for InListExpr
[src]impl PhysicalExpr for IsNotNullExpr
[src]
impl PhysicalExpr for IsNotNullExpr
[src]impl PhysicalExpr for IsNullExpr
[src]
impl PhysicalExpr for IsNullExpr
[src]impl PhysicalExpr for Literal
[src]
impl PhysicalExpr for Literal
[src]impl PhysicalExpr for NegativeExpr
[src]
impl PhysicalExpr for NegativeExpr
[src]impl PhysicalExpr for NotExpr
[src]
impl PhysicalExpr for NotExpr
[src]impl PhysicalExpr for TryCastExpr
[src]
impl PhysicalExpr for TryCastExpr
[src]impl PhysicalExpr for ScalarFunctionExpr
[src]
impl PhysicalExpr for ScalarFunctionExpr
[src]