public class HiveFunctionRegistry extends Object implements PluggableFunctionRegistry
Modifier and Type | Class and Description |
---|---|
class |
HiveFunctionRegistry.HiveSqlReturnTypeInference |
Constructor and Description |
---|
HiveFunctionRegistry(DrillConfig config)
Scan the classpath for implementation of GenericUDF/UDF interfaces,
extracts function annotation and store the
(function name) --> (implementation class) mappings.
|
Modifier and Type | Method and Description |
---|---|
HiveFuncHolder |
getFunction(FunctionCall call)
Find the UDF class for given function name and check if it accepts the given input argument
types.
|
void |
register(DrillOperatorTable operatorTable)
Register functions in given operator table.
|
public HiveFunctionRegistry(DrillConfig config)
config
- public void register(DrillOperatorTable operatorTable)
PluggableFunctionRegistry
register
in interface PluggableFunctionRegistry
public HiveFuncHolder getFunction(FunctionCall call)
getFunction
in interface PluggableFunctionRegistry
call
- Copyright © 1970 The Apache Software Foundation. All rights reserved.