Class: Embulk::GuessPlugin

Inherits:
Object
  • Object
show all
Defined in:
embulk-core/src/main/ruby/embulk/guess_plugin.rb

Defined Under Namespace

Modules: RubyAdapter Classes: JavaAdapter

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_java(java_class) ⇒ Object



29
30
31
# File 'embulk-core/src/main/ruby/embulk/guess_plugin.rb', line 29

def self.from_java(java_class)
  JavaPlugin.ruby_adapter_class(java_class, GuessPlugin, RubyAdapter)
end

.new_javaObject



10
11
12
# File 'embulk-core/src/main/ruby/embulk/guess_plugin.rb', line 10

def self.new_java
  JavaAdapter.new(new)
end

Instance Method Details

#guess(config, sample_buffer) ⇒ Object

Raises:

  • (NotImplementedError)


6
7
8
# File 'embulk-core/src/main/ruby/embulk/guess_plugin.rb', line 6

def guess(config, sample_buffer)
  raise NotImplementedError, "GuessPlugin#guess(config, sample_buffer) must be implemented"
end