Sha256: c09d7337b703f6e53d25e89d0efe570b889d9aa05a8772aca349028f79190af0
Contents?: true
Size: 977 Bytes
Versions: 34
Compression:
Stored size: 977 Bytes
Contents
package org.embulk.<%= embulk_category %>; import org.embulk.config.Config; import org.embulk.config.ConfigDefault; import org.embulk.config.ConfigSource; import org.embulk.config.Task; import org.embulk.config.TaskSource; import org.embulk.spi.DecoderPlugin; import org.embulk.spi.FileInput; public class <%= java_class_name %> implements DecoderPlugin { public interface PluginTask extends Task { @Config("property1") public String getProperty1(); @Config("property2") @ConfigDefault("0") public int getProperty2(); } @Override public void transaction(ConfigSource config, DecoderPlugin.Control control) { PluginTask task = config.loadConfig(PluginTask.class); control.run(task.dump()); } @Override public FileInput open(TaskSource taskSource, FileInput input) { PluginTask task = taskSource.loadTask(PluginTask.class); // TODO } }
Version data entries
34 entries across 34 versions & 1 rubygems