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
_cellIndex
protected ColumnModel
_columnModel
protected String
_columnName
protected Evaluable
_eval
protected Map<String,OverlayModel>
_overlayModels
protected 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 Object
eval(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:RowEvaluable
Evaluate on a given row.- Specified by:
eval
in 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
-
-