iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
iceberg::ManifestEvaluator Class Reference

Evaluates an Expression against manifest. More...

#include <manifest_evaluator.h>

Public Member Functions

Result< bool > Evaluate (const ManifestFile &manifest) const
 Evaluate the expression against a manifest.
 

Static Public Member Functions

static Result< std::unique_ptr< ManifestEvaluator > > MakeRowFilter (std::shared_ptr< Expression > expr, const std::shared_ptr< PartitionSpec > &spec, const Schema &schema, bool case_sensitive=true)
 Make a manifest evaluator for RowFilter.
 
static Result< std::unique_ptr< ManifestEvaluator > > MakePartitionFilter (std::shared_ptr< Expression > expr, const std::shared_ptr< PartitionSpec > &spec, const Schema &schema, bool case_sensitive=true)
 Make a manifest evaluator for PartitionFilter.
 

Detailed Description

Evaluates an Expression against manifest.

Note
: The evaluator is thread-safe.

Member Function Documentation

◆ Evaluate()

Result< bool > iceberg::ManifestEvaluator::Evaluate ( const ManifestFile manifest) const

Evaluate the expression against a manifest.

Parameters
manifestThe manifest to evaluate
Returns
true if the row matches the expression, false otherwise, or error

◆ MakePartitionFilter()

Result< std::unique_ptr< ManifestEvaluator > > iceberg::ManifestEvaluator::MakePartitionFilter ( std::shared_ptr< Expression expr,
const std::shared_ptr< PartitionSpec > &  spec,
const Schema schema,
bool  case_sensitive = true 
)
static

Make a manifest evaluator for PartitionFilter.

Parameters
exprThe expression to evaluate
specThe partition spec
schemaThe schema of the table
case_sensitiveWhether field name matching is case-sensitive

◆ MakeRowFilter()

Result< std::unique_ptr< ManifestEvaluator > > iceberg::ManifestEvaluator::MakeRowFilter ( std::shared_ptr< Expression expr,
const std::shared_ptr< PartitionSpec > &  spec,
const Schema schema,
bool  case_sensitive = true 
)
static

Make a manifest evaluator for RowFilter.

Parameters
exprThe expression to evaluate
specThe partition spec
schemaThe schema of the table
case_sensitiveWhether field name matching is case-sensitive

The documentation for this class was generated from the following files: