Package org.openrefine.browsing.filters
Class DualExpressionsNumberComparisonRowFilter
- java.lang.Object
-
- org.openrefine.model.RowInRecordFilter
-
- org.openrefine.browsing.filters.DualExpressionsNumberComparisonRowFilter
-
- All Implemented Interfaces:
Serializable
,RecordFilter
,RowFilter
- Direct Known Subclasses:
ScatterplotRowFilter
public abstract class DualExpressionsNumberComparisonRowFilter extends RowInRecordFilter
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected RowEvaluable
_evalX
protected RowEvaluable
_evalY
-
Fields inherited from class org.openrefine.model.RowInRecordFilter
ANY_ROW_IN_RECORD
-
Fields inherited from interface org.openrefine.model.RecordFilter
ANY_RECORD
-
-
Constructor Summary
Constructors Constructor Description DualExpressionsNumberComparisonRowFilter(RowEvaluable evaluableX, RowEvaluable evaluableY, boolean invert)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
checkValue(Object vx, Object vy)
protected abstract boolean
checkValues(double dx, double dy)
boolean
filterRow(long rowIndex, Row row, Record record)
Determines if a row matches the filter.-
Methods inherited from class org.openrefine.model.RowInRecordFilter
filterRecord, filterRow, fromRowFilter
-
-
-
-
Field Detail
-
_evalX
protected final RowEvaluable _evalX
-
_evalY
protected final RowEvaluable _evalY
-
-
Constructor Detail
-
DualExpressionsNumberComparisonRowFilter
public DualExpressionsNumberComparisonRowFilter(RowEvaluable evaluableX, RowEvaluable evaluableY, boolean invert)
-
-
Method Detail
-
filterRow
public boolean filterRow(long rowIndex, Row row, Record record)
Description copied from class:RowInRecordFilter
Determines if a row matches the filter.- Specified by:
filterRow
in classRowInRecordFilter
- Parameters:
rowIndex
- the global index of the row (from the entire grid)row
- the row itselfrecord
- the enclosing record- Returns:
- true if the row matches the filter
-
checkValues
protected abstract boolean checkValues(double dx, double dy)
-
-