fe/src/main/java/com/cloudera/impala/catalog/ScalarFunction.java
/**
   * Creates a builtin scalar function. This is a helper that wraps a few steps
   * into one call.
   */
Creates a builtin scalar function. This is a helper that wraps a few steps
into one call.
Creates a builtin scalar function . This is a helper that wraps a few steps into one call .
public static ScalarFunction createBuiltin(String name, ArrayList<ColumnType> argTypes,
      boolean hasVarArgs, ColumnType retType, String symbol,
      String prepareFnSymbol, String closeFnSymbol, boolean udfInterface) {
    Preconditions.checkNotNull(symbol);
    FunctionArgs fnArgs = new FunctionArgs(argTypes, hasVarArgs);
    ScalarFunction fn =
        new ScalarFunction(new FunctionName(Catalog.BUILTINS_DB, name), fnArgs, retType);
    fn.setBinaryType(TFunctionBinaryType.BUILTIN);
    fn.setUserVisible(true);
    fn.udfInterface_ = udfInterface;
    fn.symbolName_ = symbol;
    fn.prepareFnSymbol_ = prepareFnSymbol;
    fn.closeFnSymbol_ = closeFnSymbol;
    return fn;
  }
public static ScalarFunction createBuiltin ( String name , ArrayList < ColumnType > argTypes , boolean hasVarArgs , ColumnType retType , String symbol , String prepareFnSymbol , String closeFnSymbol , boolean udfInterface ) { Preconditions . checkNotNull ( symbol ) ; FunctionArgs fnArgs = new FunctionArgs ( argTypes , hasVarArgs ) ; ScalarFunction fn = new ScalarFunction ( new FunctionName ( Catalog . BUILTINS_DB , name ) , fnArgs , retType ) ; fn . setBinaryType ( TFunctionBinaryType . BUILTIN ) ; fn . setUserVisible ( true ) ; fn . udfInterface_ = udfInterface ; fn . symbolName_ = symbol ; fn . prepareFnSymbol_ = prepareFnSymbol ; fn . closeFnSymbol_ = closeFnSymbol ; return fn ; }
Creates a builtin scalar function.
Creates a builtin scalar function .