class Embulk::FormatterPlugin
Attributes
file_output[R]
schema[R]
task[R]
Public Class Methods
from_java(java_class)
click to toggle source
# File lib/embulk/formatter_plugin.rb, line 91 def self.from_java(java_class) JavaPlugin.ruby_adapter_class(java_class, FormatterPlugin, RubyAdapter) end
new(task, schema, file_output)
click to toggle source
# File lib/embulk/formatter_plugin.rb, line 14 def initialize(task, schema, file_output) @task = task @schema = schema @file_output = file_output init end
new_java()
click to toggle source
# File lib/embulk/formatter_plugin.rb, line 36 def self.new_java JavaAdapter.new(self) end
transaction(config, schema) { |config| ... }
click to toggle source
# File lib/embulk/formatter_plugin.rb, line 9 def self.transaction(config, schema, &control) yield(config) return {} end
Public Instance Methods
add(page)
click to toggle source
# File lib/embulk/formatter_plugin.rb, line 26 def add(page) raise NotImplementedError, "FormatterPlugin#add(page) must be implemented" end
close()
click to toggle source
# File lib/embulk/formatter_plugin.rb, line 33 def close end
finish()
click to toggle source
# File lib/embulk/formatter_plugin.rb, line 30 def finish end
init()
click to toggle source
# File lib/embulk/formatter_plugin.rb, line 23 def init end