Package org.openrefine.browsing.util
Class ExpressionBasedRowEvaluable
- java.lang.Object
-
- org.openrefine.browsing.util.ExpressionBasedRowEvaluable
-
- All Implemented Interfaces:
Serializable,RowEvaluable
public class ExpressionBasedRowEvaluable extends Object implements RowEvaluable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int_cellIndexprotected ColumnModel_columnModelprotected String_columnNameprotected Evaluable_evalprotected Map<String,OverlayModel>_overlayModelsprotected long_projectId
-
Constructor Summary
Constructors Constructor Description ExpressionBasedRowEvaluable(String columnName, int cellIndex, Evaluable eval, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objecteval(long rowIndex, Row row, Record record, Properties bindings)Evaluate on a given row.
-
-
-
Field Detail
-
_columnName
protected final String _columnName
-
_cellIndex
protected final int _cellIndex
-
_eval
protected final Evaluable _eval
-
_columnModel
protected final ColumnModel _columnModel
-
_overlayModels
protected final Map<String,OverlayModel> _overlayModels
-
_projectId
protected final long _projectId
-
-
Constructor Detail
-
ExpressionBasedRowEvaluable
public ExpressionBasedRowEvaluable(String columnName, int cellIndex, Evaluable eval, ColumnModel columnModel, Map<String,OverlayModel> overlayModels, long projectId)
-
-
Method Detail
-
eval
public Object eval(long rowIndex, Row row, Record record, Properties bindings)
Description copied from interface:RowEvaluableEvaluate on a given row.- Specified by:
evalin interfaceRowEvaluable- Parameters:
rowIndex- the index of the row in the gridrow- the row itselfrecord- the enclosing record, if available (in records mode)bindings- the map where the evaluation context is stored
-
-