public class InclusiveManifestEvaluator
extends java.lang.Object
Expression
on a ManifestFile
to test whether the file contains
matching partitions.
This 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 of eval
is false.
Constructor and Description |
---|
InclusiveManifestEvaluator(PartitionSpec spec,
Expression rowFilter) |
InclusiveManifestEvaluator(PartitionSpec spec,
Expression rowFilter,
boolean caseSensitive) |
Modifier and Type | Method and Description |
---|---|
boolean |
eval(ManifestFile manifest)
Test whether the file may contain records that match the expression.
|
public InclusiveManifestEvaluator(PartitionSpec spec, Expression rowFilter)
public InclusiveManifestEvaluator(PartitionSpec spec, Expression rowFilter, boolean caseSensitive)
public boolean eval(ManifestFile manifest)
manifest
- a manifest file