public interface FragmentContextInterface
Modifier and Type | Method and Description |
---|---|
DrillConfig |
getConfig()
Returns the Drill configuration for this run.
|
DrillbitContext |
getDrillbitContext()
Drillbit context.
|
ExecutionControls |
getExecutionControls()
Return the set of execution controls used to inject faults into running
code for testing.
|
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) |
OptionManager |
getOptions()
Returns the session options.
|
String |
getQueryUserName() |
OperatorContext |
newOperatorContext(PhysicalOperator popConfig) |
OperatorContext |
newOperatorContext(PhysicalOperator popConfig,
OperatorStats stats) |
DrillBuf |
replace(DrillBuf old,
int newSize) |
boolean |
shouldContinue()
Determine if fragment execution has been interrupted.
|
DrillbitContext getDrillbitContext()
FunctionImplementationRegistry getFunctionRegistry()
OptionManager getOptions()
<T> T getImplementationClass(ClassGenerator<T> cg) throws ClassTransformationException, IOException
ClassGenerator
,
and returns a single instance of the generated class. (Note
that the name is a misnomer, it would be better called
getImplementationInstance.)cg
- the class generatorClassTransformationException
IOException
<T> T getImplementationClass(CodeGenerator<T> cg) throws ClassTransformationException, IOException
CodeGenerator
,
and returns a single instance of the generated class. (Note
that the name is a misnomer, it would be better called
getImplementationInstance.)cg
- the code generatorClassTransformationException
IOException
<T> List<T> getImplementationClass(ClassGenerator<T> cg, int instanceCount) throws ClassTransformationException, IOException
ClassGenerator
, and returns the
specified number of instances of the generated class. (Note that the name
is a misnomer, it would be better called
getImplementationInstances.)cg
- the class generatorClassTransformationException
IOException
<T> List<T> getImplementationClass(CodeGenerator<T> cg, int instanceCount) throws ClassTransformationException, IOException
CodeGenerator
, and returns the
specified number of instances of the generated class. (Note that the name
is a misnomer, it would be better called
getImplementationInstances.)cg
- the code generatorClassTransformationException
IOException
boolean shouldContinue()
ExecutionControls getExecutionControls()
DrillConfig getConfig()
DrillBuf getManagedBuffer()
DrillBuf getManagedBuffer(int size)
OperatorContext newOperatorContext(PhysicalOperator popConfig, OperatorStats stats) throws OutOfMemoryException
OutOfMemoryException
OperatorContext newOperatorContext(PhysicalOperator popConfig) throws OutOfMemoryException
OutOfMemoryException
String getQueryUserName()
Copyright © 1970 The Apache Software Foundation. All rights reserved.