Class: Embulk::ParserPlugin
- Inherits:
-
Object
- Object
- Embulk::ParserPlugin
show all
- Defined in:
- lib/embulk/parser_plugin.rb
Defined Under Namespace
Modules: RubyAdapter
Classes: JavaAdapter
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(task, schema, page_builder) ⇒ ParserPlugin
13
14
15
16
17
18
|
# File 'lib/embulk/parser_plugin.rb', line 13
def initialize(task, schema, page_builder)
@task = task
@schema = schema
@page_builder = page_builder
init
end
|
Instance Attribute Details
#page_builder ⇒ Object
Returns the value of attribute page_builder.
20
21
22
|
# File 'lib/embulk/parser_plugin.rb', line 20
def page_builder
@page_builder
end
|
#schema ⇒ Object
Returns the value of attribute schema.
20
21
22
|
# File 'lib/embulk/parser_plugin.rb', line 20
def schema
@schema
end
|
#task ⇒ Object
Returns the value of attribute task.
20
21
22
|
# File 'lib/embulk/parser_plugin.rb', line 20
def task
@task
end
|
Class Method Details
.from_java(java_class) ⇒ Object
.new_java ⇒ Object
29
30
31
|
# File 'lib/embulk/parser_plugin.rb', line 29
def self.new_java
JavaAdapter.new(self)
end
|
.transaction(config, &control) ⇒ Object
9
10
11
|
# File 'lib/embulk/parser_plugin.rb', line 9
def self.transaction(config, &control)
raise NotImplementedError, "ParserPlugin.transaction(config, &control) must be implemented"
end
|
Instance Method Details
#init ⇒ Object
22
23
|
# File 'lib/embulk/parser_plugin.rb', line 22
def init
end
|
#run(file_input) ⇒ Object
25
26
27
|
# File 'lib/embulk/parser_plugin.rb', line 25
def run(file_input)
raise NotImplementedError, "ParserPlugin#run(file_input) must be implemented"
end
|