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(org.embulk.config.TaskSource taskSource,
       org.embulk.spi.Schema schema,
       int taskCount,
       List<org.embulk.config.TaskReport> successTaskReports)
Cleans up resources used in the transaction. 
 | 
org.embulk.config.ConfigDiff | 
guess(org.embulk.config.ConfigSource config)
Performs the guess for the partially configured input. 
 | 
org.embulk.config.ConfigDiff | 
resume(org.embulk.config.TaskSource taskSource,
      org.embulk.spi.Schema schema,
      int taskCount,
      InputPlugin.Control control)
Resumes an input transaction. 
 | 
org.embulk.config.TaskReport | 
run(org.embulk.config.TaskSource taskSource,
   org.embulk.spi.Schema schema,
   int taskIndex,
   org.embulk.spi.PageOutput output)
Runs each input task. 
 | 
org.embulk.config.ConfigDiff | 
transaction(org.embulk.config.ConfigSource config,
           InputPlugin.Control control)
Processes the entire input transaction. 
 | 
org.embulk.config.ConfigDiff transaction(org.embulk.config.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 runorg.embulk.config.ConfigDiff resume(org.embulk.config.TaskSource taskSource,
                                    org.embulk.spi.Schema schema,
                                    int taskCount,
                                    InputPlugin.Control control)
taskSource - a configuration processed for the task from ConfigSourceschema - 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(org.embulk.config.TaskSource taskSource,
             org.embulk.spi.Schema schema,
             int taskCount,
             List<org.embulk.config.TaskReport> successTaskReports)
taskSource - a configuration processed for the task from ConfigSourceschema - Schema of the inputtaskCount - the number of taskssuccessTaskReports - reports of successful tasksorg.embulk.config.TaskReport run(org.embulk.config.TaskSource taskSource,
                                 org.embulk.spi.Schema schema,
                                 int taskIndex,
                                 org.embulk.spi.PageOutput output)
taskSource - a configuration processed for the task from ConfigSourceschema - 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 Pluginorg.embulk.config.ConfigDiff guess(org.embulk.config.ConfigSource config)
config - a partial configuration for the Input Plugin given from a userconfig