|
iceberg-cpp
|
Evaluates an Expression against data rows. More...
#include <evaluator.h>
Public Member Functions | |
| Result< bool > | Evaluate (const StructLike &row) const |
| Evaluate the expression against a data row. | |
Static Public Member Functions | |
| static Result< std::unique_ptr< Evaluator > > | Make (const Schema &schema, std::shared_ptr< Expression > unbound, bool case_sensitive=true) |
| Make an evaluator for an unbound expression. | |
Evaluates an Expression against data rows.
This class evaluates bound expressions against StructLike data rows to determine if the row matches the expression criteria. The evaluator binds unbound expressions to a schema on construction and then can be used to evaluate multiple data rows.
| Result< bool > iceberg::Evaluator::Evaluate | ( | const StructLike & | row | ) | const |
Evaluate the expression against a data row.
| row | The data row to evaluate |
|
static |
Make an evaluator for an unbound expression.
| schema | The schema to bind against |
| unbound | The unbound expression to evaluate |
| case_sensitive | Whether field name matching is case-sensitive |