Package org.openrefine.operations.recon
Class ReconJudgeSimilarCellsOperation
- java.lang.Object
-
- org.openrefine.operations.EngineDependentOperation
-
- org.openrefine.operations.RowMapOperation
-
- org.openrefine.operations.recon.ReconJudgeSimilarCellsOperation
-
- All Implemented Interfaces:
Operation
public class ReconJudgeSimilarCellsOperation 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 String_columnNameprotected Recon.Judgment_judgmentprotected ReconCandidate_matchprotected boolean_shareNewTopicsprotected String_similarValue-
Fields inherited from class org.openrefine.operations.EngineDependentOperation
_engineConfig
-
-
Constructor Summary
Constructors Constructor Description ReconJudgeSimilarCellsOperation(EngineConfig engineConfig, String columnName, String similarValue, Recon.Judgment judgment, ReconCandidate match, Boolean shareNewTopics)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetColumnName()StringgetDescription()A short human-readable description of what this operation does.Recon.JudgmentgetJudgment()ReconCandidategetMatch()RowInRecordMappergetPositiveRowMapper(Grid grid, ChangeContext context)Returns the row mapper applied to the rows matched by the filter.booleangetShareNewTopics()StringgetSimilarValue()protected static RowInRecordMapperrowMapper(int columnIndex, String similarValue, Recon.Judgment judgment, ReconCandidate match, long historyEntryId)protected static RowInRecordMapperrowMapperShareNewTopics(int columnIndex, String similarValue, Recon sharedRecon)-
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
-
_similarValue
protected final String _similarValue
-
_columnName
protected final String _columnName
-
_judgment
protected final Recon.Judgment _judgment
-
_match
protected final ReconCandidate _match
-
_shareNewTopics
protected final boolean _shareNewTopics
-
-
Constructor Detail
-
ReconJudgeSimilarCellsOperation
public ReconJudgeSimilarCellsOperation(EngineConfig engineConfig, String columnName, String similarValue, Recon.Judgment judgment, ReconCandidate match, Boolean shareNewTopics)
-
-
Method Detail
-
getColumnName
public String getColumnName()
-
getSimilarValue
public String getSimilarValue()
-
getJudgment
public Recon.Judgment getJudgment()
-
getMatch
public ReconCandidate getMatch()
-
getShareNewTopics
public boolean getShareNewTopics()
-
getDescription
public String getDescription()
Description copied from interface:OperationA short human-readable description of what this operation does.
-
getPositiveRowMapper
public RowInRecordMapper getPositiveRowMapper(Grid grid, ChangeContext context) throws OperationException
Description copied from class:RowMapOperationReturns the row mapper applied to the rows matched by the filter.- Overrides:
getPositiveRowMapperin classRowMapOperation- Parameters:
grid- the initial state of the grid- Throws:
OperationException
-
rowMapperShareNewTopics
protected static RowInRecordMapper rowMapperShareNewTopics(int columnIndex, String similarValue, Recon sharedRecon)
-
rowMapper
protected static RowInRecordMapper rowMapper(int columnIndex, String similarValue, Recon.Judgment judgment, ReconCandidate match, long historyEntryId)
-
-