Package org.apache.drill.exec.compile
Class QueryClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.apache.drill.exec.compile.QueryClassLoader
- All Implemented Interfaces:
Closeable
,AutoCloseable
Per-compilation unit class loader that holds both caching and compilation
steps.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>
byte[][]
getClassByteCode
(ClassTransformer.ClassNames className, String sourceCode) long
void
injectByteCode
(String className, byte[] classBytes) Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
QueryClassLoader
-
-
Method Details
-
getNextClassIndex
public long getNextClassIndex() -
injectByteCode
- Throws:
IOException
-
findClass
- Overrides:
findClass
in classURLClassLoader
- Throws:
ClassNotFoundException
-
getClassByteCode
public byte[][] getClassByteCode(ClassTransformer.ClassNames className, String sourceCode) throws org.codehaus.commons.compiler.CompileException, IOException, ClassNotFoundException, ClassTransformationException - Throws:
org.codehaus.commons.compiler.CompileException
IOException
ClassNotFoundException
ClassTransformationException
-