Package org.apache.drill.exec.expr.fn
Interface PluggableFunctionRegistry
- All Known Implementing Classes:
HiveFunctionRegistry
public interface PluggableFunctionRegistry
-
Method Summary
Modifier and TypeMethodDescriptiongetFunction
(FunctionCall functionCall) If exists return the function implementation holder matching the givenfunctionCall
expression, otherwise null.void
register
(DrillOperatorTable operatorTable) Register functions in given operator table.
-
Method Details
-
register
Register functions in given operator table. There are two methods to add operators. One is addOperatorWithInference whose added operators will be used when planner.type_inference.enable is set to true; The other is addOperatorWithoutInference whose added operators will be used when planner.type_inference.enable is set to false;- Parameters:
operatorTable
-
-
getFunction
If exists return the function implementation holder matching the givenfunctionCall
expression, otherwise null.- Parameters:
functionCall
-- Returns:
-