fe/src/main/java/com/cloudera/impala/catalog/ScalarFunction.java
/**
   * Create a function that is used to search the catalog for a matching builtin. Only
   * the fields necessary for matching function prototypes are specified.
   */
Create a function that is used to search the catalog for a matching builtin. Only
the fields necessary for matching function prototypes are specified.
Create a function that is used to search the catalog for a matching builtin . Only the fields necessary for matching function prototypes are specified .
public static ScalarFunction createBuiltinSearchDesc(String name, ColumnType[] argTypes,
      boolean hasVarArgs) {
    FunctionArgs fnArgs = new FunctionArgs(
        argTypes == null ? new ArrayList<ColumnType>() : Lists.newArrayList(argTypes),
        hasVarArgs);
    ScalarFunction fn = new ScalarFunction(
        new FunctionName(Catalog.BUILTINS_DB, name), fnArgs, ColumnType.INVALID);
    fn.setBinaryType(TFunctionBinaryType.BUILTIN);
    return fn;
  }
public static ScalarFunction createBuiltinSearchDesc ( String name , ColumnType [ ] argTypes , boolean hasVarArgs ) { FunctionArgs fnArgs = new FunctionArgs ( argTypes == null ? new ArrayList < ColumnType > ( ) : Lists . newArrayList ( argTypes ) , hasVarArgs ) ; ScalarFunction fn = new ScalarFunction ( new FunctionName ( Catalog . BUILTINS_DB , name ) , fnArgs , ColumnType . INVALID ) ; fn . setBinaryType ( TFunctionBinaryType . BUILTIN ) ; return fn ; }
Create a function that is used to search the catalog for a matching builtin.
Create a function that is used to search the catalog for a matching builtin .