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 Row
call(Record record, long rowId, Row row)
Maps a row, in the context of a record.boolean
preservesRecordStructure()
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:RowInRecordMapper
Maps a row, in the context of a record.- Specified by:
call
in 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:RowInRecordMapper
Is this mapper guaranteed to preserve the records structure, both as a record mapper and a row mapper?- Specified by:
preservesRecordStructure
in interfaceRecordMapper
- Specified by:
preservesRecordStructure
in interfaceRowMapper
- Specified by:
preservesRecordStructure
in classRowInRecordMapper
-
-