public abstract class BaseFragmentContext extends Object implements FragmentContext
FragmentContext.ExecutorStateINJECTABLE_GETTER_METHODS| Constructor and Description |
|---|
BaseFragmentContext(FunctionImplementationRegistry funcRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract BufferManager |
getBufferManager() |
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)
Get this node's identity.
|
DrillBuf |
getManagedBuffer()
For UDFs to allocate general purpose intermediate buffers we provide the
DrillBuf type as an injectable, which provides access to an off-heap
buffer that can be tracked by Drill and re-allocated as needed.
|
DrillBuf |
getManagedBuffer(int size) |
BufferManager |
getManagedBufferManager() |
UserBitShared.QueryId |
getQueryId() |
String |
getQueryIdString() |
String |
getQueryUserName() |
QueryContext.SqlStatementType |
getSQLStatementType()
Returns the statement type (e.g.
|
DrillBuf |
replace(DrillBuf old,
int newSize) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRuntimeFilter, close, getAliasRegistryProvider, getAllocator, getCompiler, getConfig, getExecutionControls, getExecutor, getExecutorState, getFragIdString, getFullRootSchema, getHandle, getMetastoreRegistry, getNewChildAllocator, getOptions, getRuntimeFilter, getRuntimeFilter, getScanDecodeExecutor, getScanExecutor, isImpersonationEnabled, newOperatorContext, newOperatorContext, requestMemorygetConstantValueHolder, getContextInformation, getPartitionExplorerpublic BaseFragmentContext(FunctionImplementationRegistry funcRegistry)
public FunctionImplementationRegistry getFunctionRegistry()
FragmentContextgetFunctionRegistry in interface FragmentContextpublic <T> T getImplementationClass(ClassGenerator<T> cg)
FragmentContextClassGenerator,
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 FragmentContextcg - the class generatorpublic <T> T getImplementationClass(CodeGenerator<T> cg)
FragmentContextCodeGenerator,
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 FragmentContextcg - the code generatorpublic <T> List<T> getImplementationClass(ClassGenerator<T> cg, int instanceCount)
FragmentContextClassGenerator, 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 FragmentContextcg - the class generatorpublic <T> List<T> getImplementationClass(CodeGenerator<T> cg, int instanceCount)
FragmentContextgetImplementationClass in interface FragmentContextprotected abstract BufferManager getBufferManager()
public DrillBuf replace(DrillBuf old, int newSize)
replace in interface FragmentContextpublic DrillBuf getManagedBuffer()
UdfUtilitiesgetManagedBuffer in interface FragmentContextgetManagedBuffer in interface UdfUtilitiespublic DrillBuf getManagedBuffer(int size)
getManagedBuffer in interface FragmentContextpublic String getQueryUserName()
getQueryUserName in interface FragmentContextpublic UserBitShared.QueryId getQueryId()
getQueryId in interface FragmentContextUUID of the current querypublic String getQueryIdString()
getQueryIdString in interface FragmentContextUUID of the current querypublic QueryContext.SqlStatementType getSQLStatementType()
FragmentContextgetSQLStatementType in interface FragmentContextQueryContext.SqlStatementType, if known.public BufferManager getManagedBufferManager()
getManagedBufferManager in interface FragmentContextCopyright © 2022 The Apache Software Foundation. All rights reserved.