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(org.embulk.config.TaskSource taskSource,
org.embulk.spi.Schema schema,
org.embulk.spi.FileInput input,
org.embulk.spi.PageOutput output)
Runs each parsing task.
|
void |
transaction(org.embulk.config.ConfigSource config,
ParserPlugin.Control control)
Processes the entire parsing transaction.
|
void transaction(org.embulk.config.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(org.embulk.config.TaskSource taskSource, org.embulk.spi.Schema schema, org.embulk.spi.FileInput input, org.embulk.spi.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