public interface OutputPlugin
An Output Plugin writes a sequence of data records in Pages read from an Input Plugin, or a Filter
Plugin, into the configured destination.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
OutputPlugin.Control
A controller of the following tasks provided from the Embulk core.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(org.embulk.config.TaskSource taskSource,
org.embulk.spi.Schema schema,
int taskCount,
List<org.embulk.config.TaskReport> successTaskReports)
Cleans up resources used in the transaction.
|
org.embulk.spi.TransactionalPageOutput |
open(org.embulk.config.TaskSource taskSource,
org.embulk.spi.Schema schema,
int taskIndex)
Opens a
TransactionalPageOutput instance that receives Pages from an Input
Plugin, or a Filter Plugin, and writes them into the configured destination. |
org.embulk.config.ConfigDiff |
resume(org.embulk.config.TaskSource taskSource,
org.embulk.spi.Schema schema,
int taskCount,
OutputPlugin.Control control)
Resumes an output transaction.
|
org.embulk.config.ConfigDiff |
transaction(org.embulk.config.ConfigSource config,
org.embulk.spi.Schema schema,
int taskCount,
OutputPlugin.Control control)
Processes the entire output transaction.
|
org.embulk.config.ConfigDiff transaction(org.embulk.config.ConfigSource config,
org.embulk.spi.Schema schema,
int taskCount,
OutputPlugin.Control control)
config - a configuration for the Output Plugin given from a userschema - Schema of the outputtaskCount - the number of taskscontrol - a controller of the following tasks provided from the Embulk coreConfigDiff to represent the difference the next incremental runorg.embulk.config.ConfigDiff resume(org.embulk.config.TaskSource taskSource,
org.embulk.spi.Schema schema,
int taskCount,
OutputPlugin.Control control)
taskSource - a configuration processed for the task from ConfigSourceschema - Schema of the outputtaskCount - the number of taskscontrol - a controller of the following tasks provided from the Embulk coreConfigDiff to represent the difference the next incremental runvoid cleanup(org.embulk.config.TaskSource taskSource,
org.embulk.spi.Schema schema,
int taskCount,
List<org.embulk.config.TaskReport> successTaskReports)
taskSource - a configuration processed for the task from ConfigSourceschema - Schema of the outputtaskCount - the number of taskssuccessTaskReports - reports of successful tasksorg.embulk.spi.TransactionalPageOutput open(org.embulk.config.TaskSource taskSource,
org.embulk.spi.Schema schema,
int taskIndex)
TransactionalPageOutput instance that receives Pages from an Input
Plugin, or a Filter Plugin, and writes them into the configured destination.
It processes each output task.
taskSource - a configuration processed for the task from ConfigSourceschema - Schema of the outputtaskIndex - the index number of the taskTransactionalPageOutput that receives Pages
from an Input Plugin, or a Filter Plugin, and writes them into the configured destination