Package org.apache.iceberg.expressions
Class ManifestEvaluator
- java.lang.Object
-
- org.apache.iceberg.expressions.ManifestEvaluator
-
public class ManifestEvaluator extends java.lang.ObjectEvaluates anExpressionon aManifestFileto test whether the file contains matching partitions.For row expressions, evaluation is inclusive: it returns true if a file may match and false if it cannot match.
Files are passed to
eval(ManifestFile), which returns true if the manifest may contain data files that match the partition expression. Manifest files may be skipped if and only if the return value ofevalis false.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaneval(ManifestFile manifest)Test whether the file may contain records that match the expression.static ManifestEvaluatorforPartitionFilter(Expression partitionFilter, PartitionSpec spec, boolean caseSensitive)static ManifestEvaluatorforRowFilter(Expression rowFilter, PartitionSpec spec, boolean caseSensitive)
-
-
-
Method Detail
-
forRowFilter
public static ManifestEvaluator forRowFilter(Expression rowFilter, PartitionSpec spec, boolean caseSensitive)
-
forPartitionFilter
public static ManifestEvaluator forPartitionFilter(Expression partitionFilter, PartitionSpec spec, boolean caseSensitive)
-
eval
public boolean eval(ManifestFile manifest)
Test whether the file may contain records that match the expression.- Parameters:
manifest- a manifest file- Returns:
- false if the file cannot contain rows that match the expression, true otherwise.
-
-