use of de.tblsoft.solr.pipeline.bean.Pipeline in project solr-cmd-utils by tblsoft.
the class PipelineExecuter method readPipelineFromYamlFile.
Pipeline readPipelineFromYamlFile(String fileName) {
try {
InputStream input = new FileInputStream(new File(fileName));
Yaml yaml = new Yaml(new Constructor(Pipeline.class));
Pipeline pipeline = (Pipeline) yaml.load(input);
input.close();
return pipeline;
} catch (Exception e) {
throw new RuntimeException(e);
}
}
Aggregations