public interface InputPlugin
An Input Plugin reads a sequence of data records from the configured source into PageOutput
so that
the read input is read from an Output Plugin, or a Filter Plugin.
Modifier and Type | Interface and Description |
---|---|
static interface |
InputPlugin.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.
|
ConfigDiff |
guess(ConfigSource config)
Performs the guess for the partially configured input.
|
ConfigDiff |
resume(TaskSource taskSource,
Schema schema,
int taskCount,
InputPlugin.Control control)
Resumes an input transaction.
|
TaskReport |
run(TaskSource taskSource,
Schema schema,
int taskIndex,
PageOutput output)
Runs each input task.
|
ConfigDiff |
transaction(ConfigSource config,
InputPlugin.Control control)
Processes the entire input transaction.
|
ConfigDiff transaction(ConfigSource config, InputPlugin.Control control)
config
- a configuration for the 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, Schema schema, int taskCount, InputPlugin.Control control)
taskSource
- a configuration processed for the task from ConfigSource
schema
- Schema
of the inputtaskCount
- 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 inputtaskCount
- the number of taskssuccessTaskReports
- reports of successful tasksTaskReport run(TaskSource taskSource, Schema schema, int taskIndex, PageOutput output)
taskSource
- a configuration processed for the task from ConfigSource
schema
- Schema
of the inputtaskIndex
- the index number of the taskoutput
- PageOutput
to write read input so that the input is read from an Output Plugin,
or a Filter PluginConfigDiff guess(ConfigSource config)
config
- a partial configuration for the Input Plugin given from a userconfig