Package org.openrefine.browsing.filters
Class ExpressionStringComparisonRowFilter
- java.lang.Object
-
- org.openrefine.model.RowInRecordFilter
-
- org.openrefine.browsing.filters.ExpressionStringComparisonRowFilter
-
- All Implemented Interfaces:
Serializable
,RecordFilter
,RowFilter
public abstract class ExpressionStringComparisonRowFilter extends RowInRecordFilter
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 string comparisons.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
_cellIndex
protected String
_columnName
protected Evaluable
_evaluable
protected Boolean
_invert
-
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 ExpressionStringComparisonRowFilter(Evaluable evaluable, Boolean invert, String columnName, int cellIndex)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
checkValue(String s)
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
-
-
-
-
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
-
checkValue
protected abstract boolean checkValue(String s)
-
-