Class StrictMetricsEvaluator


  • public class StrictMetricsEvaluator
    extends java.lang.Object
    Evaluates an Expression on a DataFile to test whether all rows in the file match.

    This evaluation is strict: it returns true if all rows in a file must match the expression. For example, if a file's ts column has min X and max Y, this evaluator will return true for ts < Y+1 but not for ts < Y-1.

    Files are passed to eval(ContentFile), which returns true if all rows in the file must contain matching rows and false if the file may contain rows that do not match.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean eval​(ContentFile<?> file)
      Test whether the file may contain records that match the expression.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StrictMetricsEvaluator

        public StrictMetricsEvaluator​(Schema schema,
                                      Expression unbound)
    • Method Detail

      • eval

        public boolean eval​(ContentFile<?> file)
        Test whether the file may contain records that match the expression.
        Parameters:
        file - a data file
        Returns:
        false if the file cannot contain rows that match the expression, true otherwise.