Module: Embulk::GuessPlugin::RubyAdapter

Defined in:
embulk-core/src/main/ruby/embulk/guess_plugin.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#guess(config, sample) ⇒ Object



37
38
39
40
41
42
# File 'embulk-core/src/main/ruby/embulk/guess_plugin.rb', line 37

def guess(config, sample)
  java_config = config.to_java
  java_sample = sample.to_java
  java_config_diff = plugin_java_object.guess(java_config, java_sample)
  return DataSource.from_java(java_config_diff)
end