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(org.embulk.config.TaskSource taskSource,
int taskCount,
List<org.embulk.config.TaskReport> successTaskReports)
Cleans up resources used in the transaction.
|
org.embulk.spi.TransactionalFileInput |
open(org.embulk.config.TaskSource taskSource,
int taskIndex)
Opens a
TransactionalFileInput instance so that Buffer s read from
the configured source are read from a Parser Plugin, or a Decoder Plugin. |
org.embulk.config.ConfigDiff |
resume(org.embulk.config.TaskSource taskSource,
int taskCount,
FileInputPlugin.Control control)
Resumes a file input transaction.
|
org.embulk.config.ConfigDiff |
transaction(org.embulk.config.ConfigSource config,
FileInputPlugin.Control control)
Processes the entire file input transaction.
|
org.embulk.config.ConfigDiff transaction(org.embulk.config.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 runorg.embulk.config.ConfigDiff resume(org.embulk.config.TaskSource taskSource, int taskCount, FileInputPlugin.Control control)
taskSource
- a configuration processed for the task from ConfigSource
taskCount
- 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, int taskCount, List<org.embulk.config.TaskReport> successTaskReports)
taskSource
- a configuration processed for the task from ConfigSource
taskCount
- the number of taskssuccessTaskReports
- reports of successful tasksorg.embulk.spi.TransactionalFileInput open(org.embulk.config.TaskSource taskSource, int taskIndex)
TransactionalFileInput
instance so that Buffer
s 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 ConfigSource
taskIndex
- the index number of the taskTransactionalFileInput
so that Buffer
s
read from the configured source are read from a Parser Plugin, or a Decoder Plugin