Class HiveFunctionRegistry

java.lang.Object
org.apache.drill.exec.expr.fn.HiveFunctionRegistry
All Implemented Interfaces:
PluggableFunctionRegistry

public class HiveFunctionRegistry extends Object implements PluggableFunctionRegistry
  • Constructor Details

    • HiveFunctionRegistry

      public HiveFunctionRegistry(DrillConfig config)
      Scan the classpath for implementation of GenericUDF/UDF interfaces, extracts function annotation and store the (function name) --> (implementation class) mappings.
      Parameters:
      config -
  • Method Details

    • register

      public void register(DrillOperatorTable operatorTable)
      Description copied from interface: PluggableFunctionRegistry
      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;
      Specified by:
      register in interface PluggableFunctionRegistry
    • getFunction

      public HiveFuncHolder getFunction(FunctionCall call)
      Find the UDF class for given function name and check if it accepts the given input argument types. If a match is found, create a holder and return
      Specified by:
      getFunction in interface PluggableFunctionRegistry
      Parameters:
      call -
      Returns: