public interface EncoderPlugin
An Encoder Plugin converts a set of byte buffers in FileOutput
to another set of byte buffers of
FileOutput
.
Modifier and Type | Interface and Description |
---|---|
static interface |
EncoderPlugin.Control
A controller of the following tasks provided from the Embulk core.
|
Modifier and Type | Method and Description |
---|---|
org.embulk.spi.FileOutput |
open(org.embulk.config.TaskSource taskSource,
org.embulk.spi.FileOutput fileOutput)
Opens a
FileOutput instance that receives Buffer s from a Formatter Plugin,
or another Encoder Plugin, and writes encoded output into FileOutput fileOutput in the
parameter list. |
void |
transaction(org.embulk.config.ConfigSource config,
EncoderPlugin.Control control)
Processes the entire encoding transaction.
|
void transaction(org.embulk.config.ConfigSource config, EncoderPlugin.Control control)
config
- a configuration for the Encoder Plugin given from a usercontrol
- a controller of the following tasks provided from the Embulk coreorg.embulk.spi.FileOutput open(org.embulk.config.TaskSource taskSource, org.embulk.spi.FileOutput fileOutput)
FileOutput
instance that receives Buffer
s from a Formatter Plugin,
or another Encoder Plugin, and writes encoded output into FileOutput
fileOutput
in the
parameter list.taskSource
- a configuration processed for the task from ConfigSource
fileOutput
- FileOutput
to write encoded output for a File Output Plugin, or another Encoder
PluginFileOutput
that receives Buffer
s from a Formatter
Plugin, or another Encoder Plugin, and writes encoded output into FileOutput
fileOutput
in the parameter list