public class InclusiveMetricsEvaluator
extends java.lang.Object
Expression
on a DataFile
to test whether rows in the file may match.
This evaluation is inclusive: it returns true if a file may match and false if it cannot match.
Files are passed to eval(ContentFile)
, which returns true if the file may contain matching
rows and false if the file cannot contain matching rows. Files may be skipped if and only if the
return value of eval
is false.
Constructor and Description |
---|
InclusiveMetricsEvaluator(Schema schema,
Expression unbound) |
InclusiveMetricsEvaluator(Schema schema,
Expression unbound,
boolean caseSensitive) |
Modifier and Type | Method and Description |
---|---|
boolean |
eval(ContentFile<?> file)
Test whether the file may contain records that match the expression.
|
public InclusiveMetricsEvaluator(Schema schema, Expression unbound)
public InclusiveMetricsEvaluator(Schema schema, Expression unbound, boolean caseSensitive)
public boolean eval(ContentFile<?> file)
file
- a data file