Class: Embulk::InputPlugin
- Inherits:
-
Object
- Object
- Embulk::InputPlugin
- Defined in:
- lib/embulk/input_plugin.rb
Direct Known Subclasses
Defined Under Namespace
Classes: JavaAdapter
Class Method Summary collapse
- .cleanup(task, schema, count, commit_reports) ⇒ Object
- .java_object ⇒ Object
- .resume(task, columns, count, &control) ⇒ Object
- .transaction(config, &control) ⇒ Object
Instance Method Summary collapse
-
#initialize(task, schema, index, page_builder) ⇒ InputPlugin
constructor
A new instance of InputPlugin.
- #run ⇒ Object
Constructor Details
#initialize(task, schema, index, page_builder) ⇒ InputPlugin
Returns a new instance of InputPlugin.
20 21 22 23 24 25 |
# File 'lib/embulk/input_plugin.rb', line 20 def initialize(task, schema, index, page_builder) @task = task @schema = schema @index = index @page_builder = page_builder end |
Class Method Details
.cleanup(task, schema, count, commit_reports) ⇒ Object
16 17 18 |
# File 'lib/embulk/input_plugin.rb', line 16 def self.cleanup(task, schema, count, commit_reports) # do nothing by default end |
.java_object ⇒ Object
32 33 34 |
# File 'lib/embulk/input_plugin.rb', line 32 def self.java_object JavaAdapter.new(self) end |
.resume(task, columns, count, &control) ⇒ Object
12 13 14 |
# File 'lib/embulk/input_plugin.rb', line 12 def self.resume(task, columns, count, &control) raise NotImplementedError, "#{self}.resume(task, columns, count, &control) is not implemented. This plugin is not resumable" end |
.transaction(config, &control) ⇒ Object
8 9 10 |
# File 'lib/embulk/input_plugin.rb', line 8 def self.transaction(config, &control) raise NotImplementedError, "InputPlugin.transaction(config, &control) must be implemented" end |
Instance Method Details
#run ⇒ Object
27 28 29 |
# File 'lib/embulk/input_plugin.rb', line 27 def run raise NotImplementedError, "InputPlugin#run must be implemented" end |