Package org.openrefine.browsing.filters
Class ExpressionTimeComparisonRowFilter
- java.lang.Object
-
- org.openrefine.model.RowInRecordFilter
-
- org.openrefine.browsing.filters.ExpressionNumberComparisonRowFilter
-
- org.openrefine.browsing.filters.ExpressionTimeComparisonRowFilter
-
- All Implemented Interfaces:
Serializable
,RecordFilter
,RowFilter
public abstract class ExpressionTimeComparisonRowFilter extends ExpressionNumberComparisonRowFilter
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 time comparisons, or if the result is not a time or blank or error and we want non-time or blank or error values.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
_selectNonTime
protected boolean
_selectTime
-
Fields inherited from class org.openrefine.browsing.filters.ExpressionNumberComparisonRowFilter
_rowEvaluable, _selectBlank, _selectError, _selectNonNumeric, _selectNumeric
-
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 ExpressionTimeComparisonRowFilter(RowEvaluable rowEvaluable, boolean selectTime, boolean selectNonTime, boolean selectBlank, boolean selectError, boolean invert)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
checkValue(double d)
protected abstract boolean
checkValue(long d)
protected boolean
checkValue(Object v)
-
Methods inherited from class org.openrefine.browsing.filters.ExpressionNumberComparisonRowFilter
filterRow
-
Methods inherited from class org.openrefine.model.RowInRecordFilter
filterRecord, filterRow, fromRowFilter
-
-
-
-
Constructor Detail
-
ExpressionTimeComparisonRowFilter
public ExpressionTimeComparisonRowFilter(RowEvaluable rowEvaluable, boolean selectTime, boolean selectNonTime, boolean selectBlank, boolean selectError, boolean invert)
-
-
Method Detail
-
checkValue
protected boolean checkValue(Object v)
- Overrides:
checkValue
in classExpressionNumberComparisonRowFilter
-
checkValue
protected boolean checkValue(double d)
- Specified by:
checkValue
in classExpressionNumberComparisonRowFilter
-
checkValue
protected abstract boolean checkValue(long d)
-
-