public interface ParserPlugin
A Parser Plugin parses a set of byte buffers in FileInput
from a File Input Plugin, or an Decoder
Plugin, so that parsed input is read from an Output Plugin, or a Filter Plugin.
Modifier and Type | Interface and Description |
---|---|
static interface |
ParserPlugin.Control
A controller of the following tasks provided from the Embulk core.
|
Modifier and Type | Method and Description |
---|---|
void |
run(TaskSource taskSource,
Schema schema,
FileInput input,
PageOutput output)
Runs each parsing task.
|
void |
transaction(ConfigSource config,
ParserPlugin.Control control)
Processes the entire parsing transaction.
|
void transaction(ConfigSource config, ParserPlugin.Control control)
config
- a configuration for the Parser Plugin given from a usercontrol
- a controller of the following tasks provided from the Embulk corevoid run(TaskSource taskSource, Schema schema, FileInput input, PageOutput output)
taskSource
- a configuration processed for the task from ConfigSource
schema
- Schema
to be parsed toinput
- FileOutput
that is read from a File Input Plugin, or a Decoder Pluginoutput
- PageOutput
to write parsed input so that the input is read from an Output Plugin, or
another Filter Plugin