Class DualExpressionsNumberComparisonRowFilter

java.lang.Object
com.google.refine.browsing.filters.DualExpressionsNumberComparisonRowFilter
All Implemented Interfaces:
RowFilter

public abstract class DualExpressionsNumberComparisonRowFilter extends Object implements RowFilter
Judge if a row matches by evaluating two given expressions on the row, based on two different columns and checking the results. It's a match if the result satisfies some numeric comparisons.
  • Field Details

    • _x_evaluable

      protected final Evaluable _x_evaluable
    • _x_columnName

      protected final String _x_columnName
    • _x_cellIndex

      protected final int _x_cellIndex
    • _y_evaluable

      protected final Evaluable _y_evaluable
    • _y_columnName

      protected final String _y_columnName
    • _y_cellIndex

      protected final int _y_cellIndex
  • Constructor Details

    • DualExpressionsNumberComparisonRowFilter

      public DualExpressionsNumberComparisonRowFilter(Evaluable x_evaluable, String x_columnName, int x_cellIndex, Evaluable y_evaluable, String y_columnName, int y_cellIndex)
  • Method Details

    • filterRow

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

      protected boolean checkValue(Object vx, Object vy)
    • checkValues

      protected abstract boolean checkValues(double dx, double dy)