Sha256: 627861757dc4e63a39cb0d6e603d0fca96ef4d43ab7c3a93ec43c33dc3020165

Contents?: true

Size: 1.12 KB

Versions: 34

Compression:

Stored size: 1.12 KB

Contents

package org.embulk.<%= embulk_category %>;

import org.embulk.config.Config;
import org.embulk.config.ConfigDefault;
import org.embulk.config.ConfigDiff;
import org.embulk.config.ConfigSource;
import org.embulk.config.Task;
import org.embulk.config.TaskSource;
import org.embulk.spi.FormatterPlugin;
import org.embulk.spi.PageOutput;
import org.embulk.spi.FileOutput;
import org.embulk.spi.Schema;

public class <%= java_class_name %>
        implements FormatterPlugin
{
    public interface PluginTask
            extends Task
    {
        @Config("property1")
        public String getProperty1();

        @Config("property2")
        @ConfigDefault("0")
        public int getProperty2();
    }

    @Override
    public void transaction(ConfigSource config, Schema schema,
            FormatterPlugin.Control control)
    {
        PluginTask task = config.loadConfig(PluginTask.class);

        control.run(task.dump());
    }

    @Override
    public PageOutput open(TaskSource taskSource, Schema schema,
            FileOutput output)
    {
        PluginTask task = taskSource.loadTask(PluginTask.class);

        // TODO
    }
}

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
embulk-0.6.16 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.15 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.14 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.13 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.12 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.11 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.10 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.9 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.8 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.7 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.6 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.5 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.4 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.3 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.2 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.1 lib/embulk/data/new/java/formatter.java.erb
embulk-0.6.0 lib/embulk/data/new/java/formatter.java.erb
embulk-0.5.5 lib/embulk/data/new/java/formatter.java.erb
embulk-0.5.4 lib/embulk/data/new/java/formatter.java.erb
embulk-0.5.3 lib/embulk/data/new/java/formatter.java.erb