Java Code Examples for org.embulk.spi.Exec#getModelManager()
The following examples show how to use
org.embulk.spi.Exec#getModelManager() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestJsonVisitor.java From embulk-filter-column with MIT License | 5 votes |
private PluginTask taskFromYamlString(String... lines) { StringBuilder builder = new StringBuilder(); for (String line : lines) { builder.append(line).append("\n"); } String yamlString = builder.toString(); ConfigLoader loader = new ConfigLoader(Exec.getModelManager()); ConfigSource config = loader.fromYamlString(yamlString); return config.loadConfig(PluginTask.class); }
Example 2
Source File: TestColumnFilterPlugin.java From embulk-filter-column with MIT License | 5 votes |
private ConfigSource configFromYamlString(String... lines) { StringBuilder builder = new StringBuilder(); for (String line : lines) { builder.append(line).append("\n"); } String yamlString = builder.toString(); ConfigLoader loader = new ConfigLoader(Exec.getModelManager()); return loader.fromYamlString(yamlString); }
Example 3
Source File: TestColumnVisitorImpl.java From embulk-filter-column with MIT License | 5 votes |
private PluginTask taskFromYamlString(String... lines) { StringBuilder builder = new StringBuilder(); for (String line : lines) { builder.append(line).append("\n"); } String yamlString = builder.toString(); ConfigLoader loader = new ConfigLoader(Exec.getModelManager()); ConfigSource config = loader.fromYamlString(yamlString); return config.loadConfig(PluginTask.class); }
Example 4
Source File: TestJsonlParserPlugin.java From embulk-parser-jsonl with MIT License | 4 votes |
private ConfigSource getConfigFromYamlFile(File yamlFile) throws IOException { ConfigLoader loader = new ConfigLoader(Exec.getModelManager()); return loader.fromYamlFile(yamlFile); }