Search in sources :

Example 1 with OutputPlugin

use of org.embulk.spi.OutputPlugin in project embulk by embulk.

the class Executors method process.

public static void process(ExecSession exec, ProcessTask task, int taskIndex, ProcessStateCallback callback) {
    InputPlugin inputPlugin = exec.newPlugin(InputPlugin.class, task.getInputPluginType());
    List<FilterPlugin> filterPlugins = Filters.newFilterPlugins(exec, task.getFilterPluginTypes());
    OutputPlugin outputPlugin = exec.newPlugin(OutputPlugin.class, task.getOutputPluginType());
    // TODO assert task.getExecutorSchema().equals task.getOutputSchema()
    process(exec, taskIndex, inputPlugin, task.getInputSchema(), task.getInputTaskSource(), filterPlugins, task.getFilterSchemas(), task.getFilterTaskSources(), outputPlugin, task.getOutputSchema(), task.getOutputTaskSource(), callback);
}
Also used : InputPlugin(org.embulk.spi.InputPlugin) FilterPlugin(org.embulk.spi.FilterPlugin) OutputPlugin(org.embulk.spi.OutputPlugin)

Aggregations

FilterPlugin (org.embulk.spi.FilterPlugin)1 InputPlugin (org.embulk.spi.InputPlugin)1 OutputPlugin (org.embulk.spi.OutputPlugin)1