Sha256: 1ffbd4decf2b6c0a84a68ffd093bbc33885f6e14352aca1e592f725b22f5e801
Contents?: true
Size: 1.51 KB
Versions: 104
Compression:
Stored size: 1.51 KB
Contents
package org.embulk.standards; import java.util.List; import org.embulk.config.ConfigSource; import org.embulk.config.TaskSource; import org.embulk.config.ConfigDiff; import org.embulk.config.TaskReport; import org.embulk.spi.Schema; import org.embulk.spi.Page; import org.embulk.spi.Exec; import org.embulk.spi.OutputPlugin; import org.embulk.spi.TransactionalPageOutput; public class NullOutputPlugin implements OutputPlugin { @Override public ConfigDiff transaction(ConfigSource config, Schema schema, int taskCount, OutputPlugin.Control control) { return resume(Exec.newTaskSource(), schema, taskCount, control); } public ConfigDiff resume(TaskSource taskSource, Schema schema, int taskCount, OutputPlugin.Control control) { control.run(taskSource); return Exec.newConfigDiff(); } public void cleanup(TaskSource taskSource, Schema schema, int taskCount, List<TaskReport> successTaskReports) { } @Override public TransactionalPageOutput open(TaskSource taskSource, Schema schema, int taskIndex) { return new TransactionalPageOutput() { public void add(Page page) { page.release(); } public void finish() { } public void close() { } public void abort() { } public TaskReport commit() { return Exec.newTaskReport(); } }; } }
Version data entries
104 entries across 104 versions & 1 rubygems