Package org.openrefine.operations.recon
Class ExtendDataOperation
- java.lang.Object
-
- org.openrefine.operations.EngineDependentOperation
-
- org.openrefine.operations.recon.ExtendDataOperation
-
- All Implemented Interfaces:
Operation
public class ExtendDataOperation extends EngineDependentOperation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ExtendDataOperation.DataExtensionJoiner
static class
ExtendDataOperation.DataExtensionProducer
static class
ExtendDataOperation.DataExtensionSerializer
-
Field Summary
Fields Modifier and Type Field Description protected String
_baseColumnName
protected int
_columnInsertIndex
protected String
_endpoint
protected ReconciledDataExtensionJob.DataExtensionConfig
_extension
protected String
_identifierSpace
protected String
_schemaSpace
-
Fields inherited from class org.openrefine.operations.EngineDependentOperation
_engineConfig
-
-
Constructor Summary
Constructors Constructor Description ExtendDataOperation(EngineConfig engineConfig, String baseColumnName, String endpoint, String identifierSpace, String schemaSpace, ReconciledDataExtensionJob.DataExtensionConfig extension, int columnInsertIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeResult
apply(Grid projectState, ChangeContext context)
Derives the new grid state from the current grid state.String
getDescription()
A short human-readable description of what this operation does.-
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
-
_baseColumnName
protected final String _baseColumnName
-
_endpoint
protected final String _endpoint
-
_identifierSpace
protected final String _identifierSpace
-
_schemaSpace
protected final String _schemaSpace
-
_extension
protected final ReconciledDataExtensionJob.DataExtensionConfig _extension
-
_columnInsertIndex
protected final int _columnInsertIndex
-
-
Constructor Detail
-
ExtendDataOperation
public ExtendDataOperation(EngineConfig engineConfig, String baseColumnName, String endpoint, String identifierSpace, String schemaSpace, ReconciledDataExtensionJob.DataExtensionConfig extension, int columnInsertIndex)
-
-
Method Detail
-
apply
public ChangeResult apply(Grid projectState, ChangeContext context) throws OperationException
Description copied from interface:Operation
Derives the new grid state from the current grid state. Executing this method should be quick (even on large datasets) since it is expected to just derive the new grid from the existing one without actually executing any expensive computation. Long-running computations should rather go in the derivation of aChangeData
which will be fetched asynchronously.- Parameters:
projectState
- the state of the grid before the change- Returns:
- an object which bundles up various pieces of information produced by the operation: primarily, the new grid after applying the operation. This object can be subclassed to expose more information, which should be serializable with Jackson so that it reaches the frontend.
- Throws:
OperationException
- when the change cannot be applied to the given grid
-
-