Class ExpressionTimeComparisonRowFilter
java.lang.Object
com.google.refine.browsing.filters.ExpressionNumberComparisonRowFilter
com.google.refine.browsing.filters.ExpressionTimeComparisonRowFilter
- All Implemented Interfaces:
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 time comparisons, or if the result is not a time or blank or error
and we want non-time or blank or error values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final booleanFields inherited from class com.google.refine.browsing.filters.ExpressionNumberComparisonRowFilter
_rowEvaluable, _selectBlank, _selectError, _selectNonNumeric, _selectNumeric -
Constructor Summary
ConstructorsConstructorDescriptionExpressionTimeComparisonRowFilter(RowEvaluable rowEvaluable, boolean selectTime, boolean selectNonTime, boolean selectBlank, boolean selectError) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckValue(double d) protected abstract booleancheckValue(long d) protected booleancheckValue(Object v) Methods inherited from class com.google.refine.browsing.filters.ExpressionNumberComparisonRowFilter
filterRow
-
Field Details
-
_selectTime
protected final boolean _selectTime -
_selectNonTime
protected final boolean _selectNonTime
-
-
Constructor Details
-
ExpressionTimeComparisonRowFilter
public ExpressionTimeComparisonRowFilter(RowEvaluable rowEvaluable, boolean selectTime, boolean selectNonTime, boolean selectBlank, boolean selectError)
-
-
Method Details
-
checkValue
- Overrides:
checkValuein classExpressionNumberComparisonRowFilter
-
checkValue
protected boolean checkValue(double d) - Specified by:
checkValuein classExpressionNumberComparisonRowFilter
-
checkValue
protected abstract boolean checkValue(long d)
-