public interface UdfUtilities
Inject
annotation on a UDF class member with any of the types available through
this interface.Modifier and Type | Field and Description |
---|---|
static org.apache.drill.shaded.guava.com.google.common.collect.ImmutableMap<Class<?>,String> |
INJECTABLE_GETTER_METHODS |
Modifier and Type | Method and Description |
---|---|
ValueHolder |
getConstantValueHolder(String value,
TypeProtos.MinorType type,
org.apache.drill.shaded.guava.com.google.common.base.Function<DrillBuf,ValueHolder> holderInitializer)
Works with value holders cache which holds constant value and its wrapper by type.
|
ContextInformation |
getContextInformation()
Get the context information such as:
- query start time
- root fragment timezone
- query userName
- system userName
- default schema name in current session at the time of query.
|
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.
|
PartitionExplorer |
getPartitionExplorer()
A partition explorer allows UDFs to view the sub-partitions below a
particular partition.
|
ContextInformation getContextInformation()
DrillBuf getManagedBuffer()
PartitionExplorer getPartitionExplorer()
DirectoryExplorers
for
example usages of this interface.ValueHolder getConstantValueHolder(String value, TypeProtos.MinorType type, org.apache.drill.shaded.guava.com.google.common.base.Function<DrillBuf,ValueHolder> holderInitializer)
Copyright © 1970 The Apache Software Foundation. All rights reserved.