public interface FileOutputPlugin
A File Output Plugin writes file-like byte sequences from a Formatter Plugin, or an Encoder Plugin, into the configured destination.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
FileOutputPlugin.Control
A controller of the following tasks provided from the Embulk core.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(TaskSource taskSource,
int taskCount,
List<TaskReport> successTaskReports)
Cleans up resources used in the transaction.
|
TransactionalFileOutput |
open(TaskSource taskSource,
int taskIndex)
Opens a
TransactionalFileOutput instance that receives Buffers from a
Formatter Plugin, or an Encoder Plugin, and writes them into the configured destination. |
ConfigDiff |
resume(TaskSource taskSource,
int taskCount,
FileOutputPlugin.Control control)
Resumes a file output transaction.
|
ConfigDiff |
transaction(ConfigSource config,
int taskCount,
FileOutputPlugin.Control control)
Processes the entire file output transaction.
|
ConfigDiff transaction(ConfigSource config, int taskCount, FileOutputPlugin.Control control)
config - a configuration for the File Output Plugin given from a usertaskCount - 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, int taskCount, FileOutputPlugin.Control control)
taskSource - a configuration processed for the task from ConfigSourcetaskCount - 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, int taskCount, List<TaskReport> successTaskReports)
taskSource - a configuration processed for the task from ConfigSourcetaskCount - the number of taskssuccessTaskReports - reports of successful tasksTransactionalFileOutput open(TaskSource taskSource, int taskIndex)
TransactionalFileOutput instance that receives Buffers from a
Formatter Plugin, or an Encoder Plugin, and writes them into the configured destination.
It processes each file output task.
taskSource - a configuration processed for the task from ConfigSourcetaskIndex - the index number of the taskTransactionalFileOutput that receives Buffers
from a Formatter Plugin, or an Encoder Plugin, and writes them into the configured destination