Package org.openrefine.operations.row
Class RowFlagOperation
- java.lang.Object
-
- org.openrefine.operations.EngineDependentOperation
-
- org.openrefine.operations.RowMapOperation
-
- org.openrefine.operations.row.RowFlagOperation
-
- All Implemented Interfaces:
Operation
public class RowFlagOperation extends RowMapOperation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openrefine.operations.RowMapOperation
RowMapOperation.GridMap
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
_flagged
-
Fields inherited from class org.openrefine.operations.EngineDependentOperation
_engineConfig
-
-
Constructor Summary
Constructors Constructor Description RowFlagOperation(EngineConfig engineConfig, boolean flagged)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
A short human-readable description of what this operation does.boolean
getFlagged()
RowInRecordMapper
getPositiveRowMapper(Grid grid, ChangeContext context)
Returns the row mapper applied to the rows matched by the filter.protected static RowInRecordMapper
rowMapper(boolean flagged)
-
Methods inherited from class org.openrefine.operations.RowMapOperation
apply, getGridMap, getNegativeRowMapper, getNewColumnModel, getNewOverlayModels, postTransform
-
Methods inherited from class org.openrefine.operations.EngineDependentOperation
getEngine, getEngineConfig
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openrefine.operations.Operation
getOperationId, isReproducible
-
-
-
-
Constructor Detail
-
RowFlagOperation
public RowFlagOperation(EngineConfig engineConfig, boolean flagged)
-
-
Method Detail
-
getFlagged
public boolean getFlagged()
-
getDescription
public String getDescription()
Description copied from interface:Operation
A short human-readable description of what this operation does.
-
getPositiveRowMapper
public RowInRecordMapper getPositiveRowMapper(Grid grid, ChangeContext context)
Description copied from class:RowMapOperation
Returns the row mapper applied to the rows matched by the filter.- Overrides:
getPositiveRowMapper
in classRowMapOperation
- Parameters:
grid
- the initial state of the grid
-
rowMapper
protected static RowInRecordMapper rowMapper(boolean flagged)
-
-