public class FunctionImplementationRegistry extends Object implements FunctionLookupContext
Constructor and Description |
---|
FunctionImplementationRegistry(DrillConfig config) |
FunctionImplementationRegistry(DrillConfig config,
OptionManager optionManager) |
Modifier and Type | Method and Description |
---|---|
DrillFuncHolder |
findDrillFunction(FunctionResolver functionResolver,
FunctionCall functionCall)
Using the given
functionResolver find Drill function implementation for given
functionCall |
DrillFuncHolder |
findExactMatchingDrillFunction(String name,
List<TypeProtos.MajorType> argTypes,
TypeProtos.MajorType returnType)
Find the Drill function implementation that matches the name, arg types and return type.
|
AbstractFuncHolder |
findNonDrillFunction(FunctionCall functionCall)
Find function implementation for given
functionCall in non-Drill function registries such as Hive UDF
registry. |
boolean |
isFunctionComplexOutput(String name) |
void |
register(DrillOperatorTable operatorTable)
Register functions in given operator table.
|
public FunctionImplementationRegistry(DrillConfig config)
public FunctionImplementationRegistry(DrillConfig config, OptionManager optionManager)
public void register(DrillOperatorTable operatorTable)
operatorTable
- public DrillFuncHolder findDrillFunction(FunctionResolver functionResolver, FunctionCall functionCall)
functionResolver
find Drill function implementation for given
functionCall
findDrillFunction
in interface FunctionLookupContext
functionResolver
- functionCall
- public DrillFuncHolder findExactMatchingDrillFunction(String name, List<TypeProtos.MajorType> argTypes, TypeProtos.MajorType returnType)
name
- argTypes
- returnType
- public AbstractFuncHolder findNonDrillFunction(FunctionCall functionCall)
functionCall
in non-Drill function registries such as Hive UDF
registry.
Note: Order of searching is same as order of PluggableFunctionRegistry
implementations found on classpath.findNonDrillFunction
in interface FunctionLookupContext
functionCall
- public boolean isFunctionComplexOutput(String name)
Copyright © 2015 The Apache Software Foundation. All rights reserved.