public interface OnTask
OnTask
interface.Modifier and Type | Method and Description |
---|---|
TaskResult |
executeBeforeEtlTask(EtlConfig config,
Task task,
Scenario scenario)
Executes
task before etl process is started. |
TaskResult |
executeInlineTask(EtlConfig config,
Task task,
long index,
Scenario scenario)
Executes
task for each row of the data set. |
TaskResult |
executePostTask(EtlConfig config,
Task task,
DataSet dataSet,
Scenario scenario)
Executes
task after extract or load finished. |
TaskResult |
executePreTask(EtlConfig config,
Task task,
Scenario scenario)
Executes
task before extract or load started. |
String |
getCodeLanguage(Task task)
Gets the code language.
|
Map<String,Object> |
getDefaultValues(Task task)
Gets the default values for the model used to edit task.
|
String |
getResourceName(Task task)
Gets the name of the xml file used to create a model for the task editor.
|
String |
getTitle(Task task)
Gets the title.
|
void |
init(EtlConfig config,
Task task)
Initializes task.
|
boolean |
isInlineTask()
Checks if this is inline task.
|
boolean |
isPostTask()
Checks if it is a post task.
|
boolean |
isPreEtlTask()
Checks if it is a pre etl task.
|
boolean |
isPreTask()
Checks if it is a pre task.
|
TaskResult executeBeforeEtlTask(EtlConfig config, Task task, Scenario scenario) throws Exception
task
before etl process is started.config
- the etl configtask
- the task to executescenario
- the scenarioException
- in case of any errorTaskResult executeInlineTask(EtlConfig config, Task task, long index, Scenario scenario) throws Exception
task
for each row of the data set.config
- the etl configtask
- the task to executeindex
- the current row numberscenario
- the scenarioException
- in case of any errorTaskResult executePostTask(EtlConfig config, Task task, DataSet dataSet, Scenario scenario) throws Exception
task
after extract or load finished.config
- the etl configtask
- the task to executedataSet
- the data setscenario
- the scenarioException
- in case of any errorTaskResult executePreTask(EtlConfig config, Task task, Scenario scenario) throws Exception
task
before extract or load started.config
- the etl configtask
- the task to executescenario
- the scenarioException
- in case of any errorMap<String,Object> getDefaultValues(Task task)
task
- the taskString getResourceName(Task task)
task
- the taskvoid init(EtlConfig config, Task task) throws Exception
config
- the etl configtask
- the task to initializeException
- in case of any errorboolean isInlineTask()
boolean isPostTask()
boolean isPreEtlTask()
boolean isPreTask()
String getTitle(Task task)
task
- the taskString getCodeLanguage(Task task)
task
- the taskCopyright © 2010-2020 Toolsverse. All Rights Reserved.