public abstract class BaseFragmentContext extends Object implements FragmentContextInterface
| Constructor and Description |
|---|
BaseFragmentContext(FunctionImplementationRegistry funcRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract BufferManager |
getBufferManager() |
protected abstract CodeCompiler |
getCompiler() |
FunctionImplementationRegistry |
getFunctionRegistry()
Returns the UDF registry.
|
<T> T |
getImplementationClass(ClassGenerator<T> cg)
Generates code for a class given a
ClassGenerator,
and returns a single instance of the generated class. |
<T> List<T> |
getImplementationClass(ClassGenerator<T> cg,
int instanceCount)
Generates code for a class given a
ClassGenerator, and returns the
specified number of instances of the generated class. |
<T> T |
getImplementationClass(CodeGenerator<T> cg)
Generates code for a class given a
CodeGenerator,
and returns a single instance of the generated class. |
<T> List<T> |
getImplementationClass(CodeGenerator<T> cg,
int instanceCount)
Generates code for a class given a
CodeGenerator, and returns the
specified number of instances of the generated class. |
DrillBuf |
getManagedBuffer() |
DrillBuf |
getManagedBuffer(int size) |
DrillBuf |
replace(DrillBuf old,
int newSize) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfig, getDrillbitContext, getExecutionControls, getOptionSet, shouldContinuepublic BaseFragmentContext(FunctionImplementationRegistry funcRegistry)
public FunctionImplementationRegistry getFunctionRegistry()
FragmentContextInterfacegetFunctionRegistry in interface FragmentContextInterfaceprotected abstract CodeCompiler getCompiler()
public <T> T getImplementationClass(ClassGenerator<T> cg) throws ClassTransformationException, IOException
FragmentContextInterfaceClassGenerator,
and returns a single instance of the generated class. (Note
that the name is a misnomer, it would be better called
getImplementationInstance.)getImplementationClass in interface FragmentContextInterfacecg - the class generatorClassTransformationExceptionIOExceptionpublic <T> T getImplementationClass(CodeGenerator<T> cg) throws ClassTransformationException, IOException
FragmentContextInterfaceCodeGenerator,
and returns a single instance of the generated class. (Note
that the name is a misnomer, it would be better called
getImplementationInstance.)getImplementationClass in interface FragmentContextInterfacecg - the code generatorClassTransformationExceptionIOExceptionpublic <T> List<T> getImplementationClass(ClassGenerator<T> cg, int instanceCount) throws ClassTransformationException, IOException
FragmentContextInterfaceClassGenerator, and returns the
specified number of instances of the generated class. (Note that the name
is a misnomer, it would be better called
getImplementationInstances.)getImplementationClass in interface FragmentContextInterfacecg - the class generatorClassTransformationExceptionIOExceptionpublic <T> List<T> getImplementationClass(CodeGenerator<T> cg, int instanceCount) throws ClassTransformationException, IOException
FragmentContextInterfaceCodeGenerator, and returns the
specified number of instances of the generated class. (Note that the name
is a misnomer, it would be better called
getImplementationInstances.)getImplementationClass in interface FragmentContextInterfacecg - the code generatorClassTransformationExceptionIOExceptionprotected abstract BufferManager getBufferManager()
public DrillBuf replace(DrillBuf old, int newSize)
replace in interface FragmentContextInterfacepublic DrillBuf getManagedBuffer()
getManagedBuffer in interface FragmentContextInterfacepublic DrillBuf getManagedBuffer(int size)
getManagedBuffer in interface FragmentContextInterfaceCopyright © 2017 The Apache Software Foundation. All rights reserved.