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 |
---|---|
FileOutput |
open(TaskSource taskSource,
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(ConfigSource config,
EncoderPlugin.Control control)
Processes the entire encoding transaction.
|
void transaction(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 coreFileOutput open(TaskSource taskSource, 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