class Embulk::ParserPlugin

Attributes

page_builder[R]
schema[R]
task[R]

Public Class Methods

from_java(java_class) click to toggle source
# File lib/embulk/parser_plugin.rb, line 65
def self.from_java(java_class)
  JavaPlugin.ruby_adapter_class(java_class, ParserPlugin, RubyAdapter)
end
new(task, schema, page_builder) click to toggle source
# File lib/embulk/parser_plugin.rb, line 13
def initialize(task, schema, page_builder)
  @task = task
  @schema = schema
  @page_builder = page_builder
  init
end
new_java() click to toggle source
# File lib/embulk/parser_plugin.rb, line 29
def self.new_java
  JavaAdapter.new(self)
end
transaction(config, &control) click to toggle source
# File lib/embulk/parser_plugin.rb, line 9
def self.transaction(config, &control)
  raise NotImplementedError, "ParserPlugin.transaction(config, &control) must be implemented"
end

Public Instance Methods

init() click to toggle source
# File lib/embulk/parser_plugin.rb, line 22
def init
end
run(file_input) click to toggle source
# File lib/embulk/parser_plugin.rb, line 25
def run(file_input)
  raise NotImplementedError, "ParserPlugin#run(file_input) must be implemented"
end