Package org.apache.drill.exec.compile
Class CodeCompiler.CodeGenCompiler
java.lang.Object
org.apache.drill.exec.compile.CodeCompiler.CodeGenCompiler
- Enclosing class:
- CodeCompiler
Abstracts out the details of compiling code using the two available
 mechanisms. Allows this mechanism to be unit tested separately from
 the code cache.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionClass<?> compile(CodeGenerator<?> cg) Compile the code already generated by the code generator.Class<?> generateAndCompile(CodeGenerator<?> cg) Generate code for the code generator, then compile it.
- 
Constructor Details- 
CodeGenCompiler
 
- 
- 
Method Details- 
compileCompile the code already generated by the code generator.- Parameters:
- cg- the code generator for the class
- Returns:
- the compiled class
- Throws:
- Exception- if anything goes wrong
 
- 
generateAndCompileGenerate code for the code generator, then compile it.- Parameters:
- cg- the code generator for the class
- Returns:
- the compiled class
- Throws:
- Exception- if anything goes wrong
 
 
-