public interface OutputPlugin
An Output Plugin writes a sequence of data records in Page
s 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(TaskSource taskSource,
Schema schema,
int taskCount,
List<TaskReport> successTaskReports)
Cleans up resources used in the transaction.
|
TransactionalPageOutput |
open(TaskSource taskSource,
Schema schema,
int taskIndex)
Opens a
TransactionalPageOutput instance that receives Page s from an Input
Plugin, or a Filter Plugin, and writes them into the configured destination. |
ConfigDiff |
resume(TaskSource taskSource,
Schema schema,
int taskCount,
OutputPlugin.Control control)
Resumes an output transaction.
|
ConfigDiff |
transaction(ConfigSource config,
Schema schema,
int taskCount,
OutputPlugin.Control control)
Processes the entire output transaction.
|
ConfigDiff transaction(ConfigSource config, 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 runConfigDiff resume(TaskSource taskSource, Schema schema, int taskCount, OutputPlugin.Control control)
taskSource
- a configuration processed for the task from ConfigSource
schema
- 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(TaskSource taskSource, Schema schema, int taskCount, List<TaskReport> successTaskReports)
taskSource
- a configuration processed for the task from ConfigSource
schema
- Schema
of the outputtaskCount
- the number of taskssuccessTaskReports
- reports of successful tasksTransactionalPageOutput open(TaskSource taskSource, Schema schema, int taskIndex)
TransactionalPageOutput
instance that receives Page
s 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 ConfigSource
schema
- Schema
of the outputtaskIndex
- the index number of the taskTransactionalPageOutput
that receives Page
s
from an Input Plugin, or a Filter Plugin, and writes them into the configured destination