public interface FileInputPlugin
A File Input Plugin reads file-like byte sequences from the configured source into a set of byte buffers
Buffer of TransactionalFileInput.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
FileInputPlugin.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.
|
TransactionalFileInput |
open(TaskSource taskSource,
int taskIndex)
Opens a
TransactionalFileInput instance so that Buffers read from
the configured source are read from a Parser Plugin, or a Decoder Plugin. |
ConfigDiff |
resume(TaskSource taskSource,
int taskCount,
FileInputPlugin.Control control)
Resumes a file input transaction.
|
ConfigDiff |
transaction(ConfigSource config,
FileInputPlugin.Control control)
Processes the entire file input transaction.
|
ConfigDiff transaction(ConfigSource config, FileInputPlugin.Control control)
config - a configuration for the File Input Plugin given from a usercontrol - a controller of the following tasks provided from the Embulk coreConfigDiff to represent the difference the next incremental runConfigDiff resume(TaskSource taskSource, int taskCount, FileInputPlugin.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 tasksTransactionalFileInput open(TaskSource taskSource, int taskIndex)
TransactionalFileInput instance so that Buffers read from
the configured source are read from a Parser Plugin, or a Decoder Plugin.
It processes each file input task.
taskSource - a configuration processed for the task from ConfigSourcetaskIndex - the index number of the taskTransactionalFileInput so that Buffers
read from the configured source are read from a Parser Plugin, or a Decoder Plugin