Class ExpressionNumberComparisonRowFilter

java.lang.Object
com.google.refine.browsing.filters.ExpressionNumberComparisonRowFilter
All Implemented Interfaces:
RowFilter
Direct Known Subclasses:
ExpressionTimeComparisonRowFilter

public abstract class ExpressionNumberComparisonRowFilter extends Object implements RowFilter
Judge if a row matches by evaluating a given expression on the row, based on a particular column, and checking the result. It's a match if the result satisfies some numeric comparisons, or if the result is non-numeric or blank or error and we want non-numeric or blank or error values.
  • Field Details

    • _rowEvaluable

      protected final RowEvaluable _rowEvaluable
    • _selectNumeric

      protected final boolean _selectNumeric
    • _selectNonNumeric

      protected final boolean _selectNonNumeric
    • _selectBlank

      protected final boolean _selectBlank
    • _selectError

      protected final boolean _selectError
  • Constructor Details

    • ExpressionNumberComparisonRowFilter

      public ExpressionNumberComparisonRowFilter(RowEvaluable rowEvaluable, boolean selectNumeric, boolean selectNonNumeric, boolean selectBlank, boolean selectError)
  • Method Details

    • filterRow

      public boolean filterRow(Project project, int rowIndex, Row row)
      Specified by:
      filterRow in interface RowFilter
    • checkValue

      protected boolean checkValue(Object v)
    • checkValue

      protected abstract boolean checkValue(double d)