use of com.hortonworks.streamline.streams.sql.compiler.javac.CompilingClassLoader in project streamline by hortonworks.
the class PlanCompiler method compile.
public AbstractValuesProcessor compile(RelNode plan) throws Exception {
String javaCode = generateJavaSource(plan);
LOG.debug("Compiling... source code {}", javaCode);
ClassLoader cl = new CompilingClassLoader(getClass().getClassLoader(), PACKAGE_NAME + ".Processor", javaCode, null);
return (AbstractValuesProcessor) cl.loadClass(PACKAGE_NAME + ".Processor").newInstance();
}
Aggregations