Package org.openrefine.operations.recon
Class ReconCopyAcrossColumnsOperation
- java.lang.Object
-
- org.openrefine.operations.EngineDependentOperation
-
- org.openrefine.operations.RowMapOperation
-
- org.openrefine.operations.recon.ReconCopyAcrossColumnsOperation
-
- All Implemented Interfaces:
Operation
public class ReconCopyAcrossColumnsOperation 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
_applyToJudgedCells
protected String
_fromColumnName
protected List<Recon.Judgment>
_judgments
protected List<String>
_toColumnNames
-
Fields inherited from class org.openrefine.operations.EngineDependentOperation
_engineConfig
-
-
Constructor Summary
Constructors Constructor Description ReconCopyAcrossColumnsOperation(EngineConfig engineConfig, String fromColumnName, List<String> toColumnNames, List<Recon.Judgment> judgments, boolean applyToJudgedCells)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static RowAggregator<com.google.common.collect.ImmutableMap<Serializable,Recon>>
getAggregator(int cellIndex, Set<Recon.Judgment> judgments)
boolean
getApplyToJudgedCells()
String
getDescription()
A short human-readable description of what this operation does.String
getFromColumnName()
List<Recon.Judgment>
getJudgments()
RowInRecordMapper
getPositiveRowMapper(Grid projectState, ChangeContext context)
Returns the row mapper applied to the rows matched by the filter.protected static RowInRecordMapper
getRowMapper(List<Integer> columnIndices, Map<Serializable,Recon> valueToRecon, boolean applyToJudgedCells)
List<String>
getToColumnNames()
-
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
-
-
-
-
Field Detail
-
_fromColumnName
protected final String _fromColumnName
-
_judgments
protected final List<Recon.Judgment> _judgments
-
_applyToJudgedCells
protected final boolean _applyToJudgedCells
-
-
Constructor Detail
-
ReconCopyAcrossColumnsOperation
public ReconCopyAcrossColumnsOperation(EngineConfig engineConfig, String fromColumnName, List<String> toColumnNames, List<Recon.Judgment> judgments, boolean applyToJudgedCells)
-
-
Method Detail
-
getFromColumnName
public String getFromColumnName()
-
getJudgments
public List<Recon.Judgment> getJudgments()
-
getApplyToJudgedCells
public boolean getApplyToJudgedCells()
-
getPositiveRowMapper
public RowInRecordMapper getPositiveRowMapper(Grid projectState, ChangeContext context) throws OperationException
Description copied from class:RowMapOperation
Returns the row mapper applied to the rows matched by the filter.- Overrides:
getPositiveRowMapper
in classRowMapOperation
- Parameters:
projectState
- the initial state of the grid- Throws:
OperationException
-
getAggregator
protected static RowAggregator<com.google.common.collect.ImmutableMap<Serializable,Recon>> getAggregator(int cellIndex, Set<Recon.Judgment> judgments)
-
getRowMapper
protected static RowInRecordMapper getRowMapper(List<Integer> columnIndices, Map<Serializable,Recon> valueToRecon, boolean applyToJudgedCells)
-
-