Package org.apache.iceberg.expressions
Class Projections.ProjectionEvaluator
java.lang.Object
org.apache.iceberg.expressions.ExpressionVisitors.ExpressionVisitor<Expression>
org.apache.iceberg.expressions.Projections.ProjectionEvaluator
- Enclosing class:
Projections
public abstract static class Projections.ProjectionEvaluator
extends ExpressionVisitors.ExpressionVisitor<Expression>
A class that projects expressions for a table's data rows into expressions on the table's
partition values, for a table's
partition spec
.
There are two types of projections: inclusive and strict.
An inclusive projection guarantees that if an expression matches a row, the projected expression will match the row's partition.
A strict projection guarantees that if a partition matches a projected expression, then all rows in that partition will match the original expression.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Expression
project
(Expression expr) Project the given row expression to a partition expression.Methods inherited from class org.apache.iceberg.expressions.ExpressionVisitors.ExpressionVisitor
aggregate, aggregate, alwaysFalse, alwaysTrue, and, not, or, predicate, predicate
-
Constructor Details
-
ProjectionEvaluator
public ProjectionEvaluator()
-
-
Method Details
-
project
Project the given row expression to a partition expression.- Parameters:
expr
- an expression on data rows- Returns:
- an expression on partition data (depends on the projection)
-