Package org.openrefine.operations
Class ExpressionBasedOperation.PositiveRowMapper
- java.lang.Object
-
- org.openrefine.model.RowInRecordMapper
-
- org.openrefine.operations.ExpressionBasedOperation.PositiveRowMapper
-
- All Implemented Interfaces:
Serializable,RecordMapper,RowMapper
- Enclosing class:
- ExpressionBasedOperation
protected static class ExpressionBasedOperation.PositiveRowMapper extends RowInRecordMapper
Row mapper which calls a change data producer (to evaluate the expression) and directly calls the corresponding change data joiner (to insert the results in the row). This should only be used with expressions which are local and therefore cheap to evaluate.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openrefine.model.RowInRecordMapper
IDENTITY
-
-
Constructor Summary
Constructors Constructor Description PositiveRowMapper(RowInRecordChangeDataProducer<Cell> producer, RowInRecordChangeDataJoiner joiner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rowcall(Record record, long rowId, Row row)Maps a row, in the context of a record.booleanpreservesRecordStructure()Is this mapper guaranteed to preserve the records structure, both as a record mapper and a row mapper?-
Methods inherited from class org.openrefine.model.RowInRecordMapper
call, call, fromRowMapper, preservesRowCount
-
-
-
-
Constructor Detail
-
PositiveRowMapper
public PositiveRowMapper(RowInRecordChangeDataProducer<Cell> producer, RowInRecordChangeDataJoiner joiner)
-
-
Method Detail
-
call
public Row call(Record record, long rowId, Row row)
Description copied from class:RowInRecordMapperMaps a row, in the context of a record.- Specified by:
callin classRowInRecordMapper- Parameters:
record- the record enclosing the row to maprowId- the global index of the row in the entire gridrow- the row itself
-
preservesRecordStructure
public boolean preservesRecordStructure()
Description copied from class:RowInRecordMapperIs this mapper guaranteed to preserve the records structure, both as a record mapper and a row mapper?- Specified by:
preservesRecordStructurein interfaceRecordMapper- Specified by:
preservesRecordStructurein interfaceRowMapper- Specified by:
preservesRecordStructurein classRowInRecordMapper
-
-