Package org.openrefine.model.recon
Class ReconConfig
- java.lang.Object
-
- org.openrefine.model.recon.ReconConfig
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
StandardReconConfig
public abstract class ReconConfig extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOGGERstatic Map<Class<? extends ReconConfig>,String>s_opClassToNamestatic Map<String,List<Class<? extends ReconConfig>>>s_opNameToClass
-
Constructor Summary
Constructors Constructor Description ReconConfig()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract List<Recon>batchRecon(List<ReconJob> jobs, long historyEntryID)abstract ReconJobcreateJob(ColumnModel columnModel, long rowIndex, Row row, String columnName, Cell cell)abstract ReconcreateNewRecon(long historyEntryID)abstract intgetBatchSize()abstract StringgetBriefDescription(String columnName)static Class<? extends ReconConfig>getClassFromMode(String mode)abstract StringgetMode()Returns the identifier for the reconciliation mode, as serialized in JSON.static ReconConfigreconstruct(String json)static voidregisterReconConfig(String moduleName, String name, Class<? extends ReconConfig> klass)voidsave(Writer writer)
-
-
-
Field Detail
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
s_opNameToClass
public static final Map<String,List<Class<? extends ReconConfig>>> s_opNameToClass
-
s_opClassToName
public static final Map<Class<? extends ReconConfig>,String> s_opClassToName
-
-
Method Detail
-
registerReconConfig
public static void registerReconConfig(String moduleName, String name, Class<? extends ReconConfig> klass)
-
getClassFromMode
public static Class<? extends ReconConfig> getClassFromMode(String mode)
-
reconstruct
public static ReconConfig reconstruct(String json) throws Exception
- Throws:
Exception
-
getBatchSize
public abstract int getBatchSize()
-
createJob
public abstract ReconJob createJob(ColumnModel columnModel, long rowIndex, Row row, String columnName, Cell cell)
-
createNewRecon
public abstract Recon createNewRecon(long historyEntryID)
-
save
public void save(Writer writer)
-
getMode
public abstract String getMode()
Returns the identifier for the reconciliation mode, as serialized in JSON. This is the same identifier that was used to register the registration mode. Jackson already adds the mode during serialization hence the JsonIgnore here.
-
-